public abstract class AbstractConfigElement<T,C> extends Object implements ConfigElement<T,C>
| Constructor and Description |
|---|
AbstractConfigElement(String name,
C context,
AbstractConfigurationPersister config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSaveObject(T object) |
AbstractConfigurationPersister |
getConfiguration() |
String |
getPropertyName() |
T |
load() |
protected abstract T |
loadConfig() |
void |
save(T object) |
protected abstract void |
saveConfig(T object) |
void |
setPropertyName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getObjectClass, setContextpublic AbstractConfigElement(String name, C context, AbstractConfigurationPersister config)
public final void save(T object) throws ConfigurationException
save in interface ConfigElement<T,C>ConfigurationExceptionpublic final T load() throws ConfigurationException
load in interface ConfigElement<T,C>ConfigurationExceptionprotected void checkSaveObject(T object) throws ConfigurationException
ConfigurationExceptionpublic AbstractConfigurationPersister getConfiguration()
public String getPropertyName()
getPropertyName in interface ConfigElement<T,C>public void setPropertyName(String name)
setPropertyName in interface ConfigElement<T,C>protected abstract T loadConfig() throws ConfigurationException
ConfigurationExceptionprotected abstract void saveConfig(T object) throws ConfigurationException
ConfigurationExceptionCopyright © 2006–2024 Atlassian. All rights reserved.