com.atlassian.config
Class AbstractConfigurationPersister

java.lang.Object
  extended by com.atlassian.config.AbstractConfigurationPersister
All Implemented Interfaces:
ConfigurationPersister
Direct Known Subclasses:
AbstractDom4jXmlConfigurationPersister

public abstract class AbstractConfigurationPersister
extends Object
implements ConfigurationPersister


Constructor Summary
AbstractConfigurationPersister()
           
 
Method Summary
 void addConfigElement(Object item, String propertyName)
           
 void addConfigElement(Object item, String propertyName, Object context)
           
 void addConfigMapping(Class propertyType, Class configType)
           
 Object getConfigElement(Class propertyType, String propertyName)
           
 Object getConfigElement(Class propertyType, String propertyName, Object context)
           
abstract  Object getRootContext()
           
 String getStringConfigElement(String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.config.ConfigurationPersister
clear, load, load, save
 

Constructor Detail

AbstractConfigurationPersister

public AbstractConfigurationPersister()
Method Detail

addConfigMapping

public void addConfigMapping(Class propertyType,
                             Class configType)
Specified by:
addConfigMapping in interface ConfigurationPersister

getRootContext

public abstract Object getRootContext()

addConfigElement

public void addConfigElement(Object item,
                             String propertyName)
                      throws ConfigurationException
Specified by:
addConfigElement in interface ConfigurationPersister
Throws:
ConfigurationException

getConfigElement

public Object getConfigElement(Class propertyType,
                               String propertyName)
                        throws ConfigurationException
Specified by:
getConfigElement in interface ConfigurationPersister
Throws:
ConfigurationException

getStringConfigElement

public String getStringConfigElement(String propertyName)
                              throws ConfigurationException
Specified by:
getStringConfigElement in interface ConfigurationPersister
Throws:
ConfigurationException

addConfigElement

public void addConfigElement(Object item,
                             String propertyName,
                             Object context)
                      throws ConfigurationException
Throws:
ConfigurationException

getConfigElement

public Object getConfigElement(Class propertyType,
                               String propertyName,
                               Object context)
                        throws ConfigurationException
Throws:
ConfigurationException


Atlassian Config is developed by Atlassian Software Systems.