Class XStreamAdminConfigPersister
java.lang.Object
com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister
Provides an XStream implementation of
AdministrationConfiguration.-
Constructor Summary
ConstructorsConstructorDescriptionXStreamAdminConfigPersister(String configurationDirectory, com.thoughtworks.xstream.XStream xStream) Create a persister to load and storeAdministrationConfigurationobjects in the given myConfigurationDirectory directory. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@Nullable AdministrationConfigurationLoad theAdministrationConfigurationfrom the myConfigurationDirectory.voidsaveConfiguration(AdministrationConfiguration administrationConfiguration) Save the given administrationConfiguration in the myConfigurationDirectory.
-
Constructor Details
-
XStreamAdminConfigPersister
public XStreamAdminConfigPersister(String configurationDirectory, com.thoughtworks.xstream.XStream xStream) Create a persister to load and storeAdministrationConfigurationobjects in the given myConfigurationDirectory directory.- Parameters:
configurationDirectory- The location of the persisted objectsxStream- XStream
-
-
Method Details
-
loadConfiguration
@Nullable public @Nullable AdministrationConfiguration loadConfiguration() throws PersisterExceptionLoad theAdministrationConfigurationfrom the myConfigurationDirectory.- Returns:
- The loaded object. Null if there is no saved object
- Throws:
PersisterException- Could not load the configuration file.
-
saveConfiguration
public void saveConfiguration(AdministrationConfiguration administrationConfiguration) throws PersisterException Save the given administrationConfiguration in the myConfigurationDirectory.- Parameters:
administrationConfiguration- The object to save- Throws:
PersisterException- Could not save the configuration file.
-
isSetupComplete
protected boolean isSetupComplete()
-