com.atlassian.config
Class AbstractConfigElement

java.lang.Object
  extended by com.atlassian.config.AbstractConfigElement
All Implemented Interfaces:
ConfigElement
Direct Known Subclasses:
Dom4jXmlStringConfigElement

public abstract class AbstractConfigElement
extends Object
implements ConfigElement

Created by IntelliJ IDEA. User: ROSS Date: 16/03/2004 Time: 13:07:59 To change this template use File | Settings | File Templates.


Constructor Summary
AbstractConfigElement(String name, Object context, AbstractConfigurationPersister config)
           
 
Method Summary
protected  void checkSaveObject(Object object)
           
 AbstractConfigurationPersister getConfiguration()
           
 String getPropertyName()
           
 Object load()
           
protected abstract  Object loadConfig()
           
 void save(Object object)
           
protected abstract  void saveConfig(Object object)
           
 void setPropertyName(String name)
           
 
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.ConfigElement
getContext, getObjectClass, setContext
 

Constructor Detail

AbstractConfigElement

public AbstractConfigElement(String name,
                             Object context,
                             AbstractConfigurationPersister config)
Method Detail

save

public final void save(Object object)
                throws ConfigurationException
Specified by:
save in interface ConfigElement
Throws:
ConfigurationException

load

public final Object load()
                  throws ConfigurationException
Specified by:
load in interface ConfigElement
Throws:
ConfigurationException

checkSaveObject

protected void checkSaveObject(Object object)
                        throws ConfigurationException
Throws:
ConfigurationException

getConfiguration

public AbstractConfigurationPersister getConfiguration()

getPropertyName

public String getPropertyName()
Specified by:
getPropertyName in interface ConfigElement

setPropertyName

public void setPropertyName(String name)
Specified by:
setPropertyName in interface ConfigElement

loadConfig

protected abstract Object loadConfig()
                              throws ConfigurationException
Throws:
ConfigurationException

saveConfig

protected abstract void saveConfig(Object object)
                            throws ConfigurationException
Throws:
ConfigurationException


Atlassian Config is developed by Atlassian Software Systems.