public class HierarchicalReloadableConfiguration extends HierarchicalConfiguration implements Reloadable
A base class for hierarchical configurations with specific reloading requirements.
This class manages a lock object which can be used for synchronization.
HierarchicalConfiguration.BuilderVisitor, HierarchicalConfiguration.Node, HierarchicalConfiguration.NodeVisitor
EVENT_ADD_NODES, EVENT_CLEAR_TREE, EVENT_SUBNODE_CHANGED
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN
Constructor and Description |
---|
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(Object lock)
Creates a new instance of
HierarchicalReloadableConfiguration and
initializes it with the given lock object. |
Modifier and Type | Method and Description |
---|---|
Object |
getReloadLock()
Returns the object to synchronize on a reload.
|
addNodes, addPropertyDirect, clear, clearNode, clearNode, clearProperty, clearReferences, clearTree, clone, configurationAt, configurationAt, configurationsAt, containsKey, createAddPath, createNode, createSubnodeConfiguration, createSubnodeConfiguration, fetchAddNode, fetchNodeList, findLastPathNode, findPropertyNodes, getDefaultExpressionEngine, getExpressionEngine, getKeys, getKeys, getMaxIndex, getProperty, getRoot, getRootNode, interpolatedConfiguration, isEmpty, nodeDefined, nodeDefined, removeNode, removeNode, setDefaultExpressionEngine, setExpressionEngine, setProperty, setRoot, setRootNode, subnodeConfigurationChanged, subset
addErrorLogListener, addProperty, append, clearPropertyDirect, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setThrowExceptionOnMissing
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
public HierarchicalReloadableConfiguration()
HierarchicalReloadableConfiguration
.public HierarchicalReloadableConfiguration(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)public Object getReloadLock()
HierarchicalConfiguration
getReloadLock
in interface Reloadable
getReloadLock
in class HierarchicalConfiguration
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.