Class XStreamAdminConfigPersister
- java.lang.Object
-
- com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister
-
public class XStreamAdminConfigPersister extends Object
Provides an XStream implementation ofAdministrationConfiguration.
-
-
Constructor Summary
Constructors Constructor Description XStreamAdminConfigPersister(String configurationDirectory, com.thoughtworks.xstream.XStream xStream)Create a persister to load and storeAdministrationConfigurationobjects in the given myConfigurationDirectory directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisSetupComplete()@Nullable AdministrationConfigurationloadConfiguration()Load theAdministrationConfigurationfrom the myConfigurationDirectory.voidsaveConfiguration(AdministrationConfiguration administrationConfiguration)Save the given administrationConfiguration in the myConfigurationDirectory.
-
-
-
Constructor Detail
-
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 Detail
-
loadConfiguration
@Nullable public @Nullable AdministrationConfiguration loadConfiguration() throws PersisterException
Load 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()
-
-