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.


Field Summary
static java.lang.String ADMIN_XML_FILE
           
 
Constructor Summary
XStreamAdminConfigPersister(java.lang.String configurationDirectory)
          Create a persister to load and store AdministrationConfiguration objects in the given myConfigurationDirectory directory.
 
Method Summary
 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
 

Field Detail

ADMIN_XML_FILE

public static final java.lang.String ADMIN_XML_FILE
See Also:
Constant Field Values
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.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.