|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
org.apache.commons.configuration.HierarchicalConfiguration
org.apache.commons.configuration.HierarchicalReloadableConfiguration
public class HierarchicalReloadableConfiguration
A base class for hierarchical configurations with specific reloading requirements.
This class manages a lock object which can be used for synchronization.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.configuration.HierarchicalConfiguration |
---|
HierarchicalConfiguration.BuilderVisitor, HierarchicalConfiguration.Node, HierarchicalConfiguration.NodeVisitor |
Field Summary |
---|
Fields inherited from class org.apache.commons.configuration.HierarchicalConfiguration |
---|
EVENT_ADD_NODES, EVENT_CLEAR_TREE, EVENT_SUBNODE_CHANGED |
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
---|
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN |
Constructor Summary | |
---|---|
HierarchicalReloadableConfiguration()
Creates a new instance of HierarchicalReloadableConfiguration . |
|
HierarchicalReloadableConfiguration(HierarchicalConfiguration c)
Creates a new instance of HierarchicalReloadableConfiguration and
copies all data contained in the specified configuration into the new
one. |
|
HierarchicalReloadableConfiguration(java.lang.Object lock)
Creates a new instance of HierarchicalReloadableConfiguration and
initializes it with the given lock object. |
Method Summary | |
---|---|
java.lang.Object |
getReloadLock()
Returns the object to synchronize on a reload. |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
---|
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalReloadableConfiguration()
HierarchicalReloadableConfiguration
.
public HierarchicalReloadableConfiguration(java.lang.Object lock)
HierarchicalReloadableConfiguration
and
initializes it with the given lock object.
lock
- the lock objectpublic HierarchicalReloadableConfiguration(HierarchicalConfiguration c)
HierarchicalReloadableConfiguration
and
copies all data contained in the specified configuration into the new
one.
c
- the configuration that is to be copied (if null, this
constructor will behave like the standard constructor)Method Detail |
---|
public java.lang.Object getReloadLock()
HierarchicalConfiguration
getReloadLock
in interface Reloadable
getReloadLock
in class HierarchicalConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |