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 storeAdministrationConfiguration
objects in the given myConfigurationDirectory directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isSetupComplete()
@Nullable AdministrationConfiguration
loadConfiguration()
Load theAdministrationConfiguration
from the myConfigurationDirectory.void
saveConfiguration(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 storeAdministrationConfiguration
objects 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 theAdministrationConfiguration
from 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()
-
-