com.atlassian.bamboo.persister.xstream
Class XStreamAdminConfigPersister

java.lang.Object
  extended by com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister
All Implemented Interfaces:
AdministrationConfigurationPersister

public class XStreamAdminConfigPersister
extends java.lang.Object
implements AdministrationConfigurationPersister

Provides an XStream implemantation of AdministrationConfiguration.


Constructor Summary
XStreamAdminConfigPersister(java.lang.String configurationDirectory)
          Create a persister to load and store AdministrationConfiguration objects in the given myConfigurationDirectory directory.
 
Method Summary
protected  boolean isSetupComplete()
           
 AdministrationConfiguration loadConfiguation()
          Load the AdministrationConfiguration from the myConfigurationDirectory.
 void saveConfiguration(AdministrationConfiguration administrationConfiguration)
          Save the given administrationConfiguration in the myConfigurationDirectory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamAdminConfigPersister

public XStreamAdminConfigPersister(java.lang.String configurationDirectory)
Create a persister to load and store AdministrationConfiguration objects in the given myConfigurationDirectory directory.

Parameters:
configurationDirectory - The location of the persisted objects
Method Detail

loadConfiguation

public AdministrationConfiguration loadConfiguation()
                                             throws PersisterException
Load the AdministrationConfiguration from the myConfigurationDirectory.

Specified by:
loadConfiguation in interface AdministrationConfigurationPersister
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.

Specified by:
saveConfiguration in interface AdministrationConfigurationPersister
Parameters:
administrationConfiguration - The object to save
Throws:
PersisterException - Could not save the configuration file.

isSetupComplete

protected boolean isSetupComplete()


Copyright © 2011 Atlassian. All Rights Reserved.