public class XStreamAdminConfigPersister extends Object
AdministrationConfiguration
.Constructor and Description |
---|
XStreamAdminConfigPersister(String configurationDirectory,
com.thoughtworks.xstream.XStream xStream)
Create a persister to load and store
AdministrationConfiguration objects in the
given myConfigurationDirectory directory. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isSetupComplete() |
AdministrationConfiguration |
loadConfiguation()
Load the
AdministrationConfiguration from the myConfigurationDirectory. |
void |
saveConfiguration(AdministrationConfiguration administrationConfiguration)
Save the given administrationConfiguration in the myConfigurationDirectory.
|
public XStreamAdminConfigPersister(String configurationDirectory, com.thoughtworks.xstream.XStream xStream)
AdministrationConfiguration
objects in the
given myConfigurationDirectory directory.configurationDirectory
- The location of the persisted objectsxStream
- XStream@Nullable public AdministrationConfiguration loadConfiguation() throws PersisterException
AdministrationConfiguration
from the myConfigurationDirectory.PersisterException
- Could not load the configuration file.public void saveConfiguration(AdministrationConfiguration administrationConfiguration) throws PersisterException
administrationConfiguration
- The object to savePersisterException
- Could not save the configuration file.protected boolean isSetupComplete()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.