public class BaseConfiguration extends AbstractConfiguration implements Cloneable
| Constructor and Description | 
|---|
BaseConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addPropertyDirect(String key,
                 Object value)
Adds a key/value pair to the map. 
 | 
protected void | 
clearInternal()
Clears the whole configuration. 
 | 
protected void | 
clearPropertyDirect(String key)
Clear a property in the configuration. 
 | 
Object | 
clone()
Creates a copy of this object. 
 | 
protected boolean | 
containsKeyInternal(String key)
check if the configuration contains the key 
 | 
protected Iterator<String> | 
getKeysInternal()
Get the list of the keys contained in the configuration
 repository. 
 | 
protected Object | 
getPropertyInternal(String key)
Read property from underlying map. 
 | 
protected boolean | 
isEmptyInternal()
Check if the configuration is empty 
 | 
protected int | 
sizeInternal()
Actually calculates the size of this configuration. 
 | 
addErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getKeysInternal, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, interpolatedConfiguration, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setPropertyInternal, setSynchronizer, setThrowExceptionOnMissing, size, subset, unlockaddEventListener, clearErrorListeners, clearEventListeners, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventsprotected void addPropertyDirect(String key, Object value)
addPropertyDirect in class AbstractConfigurationkey - key to use for mappingvalue - object to storeprotected Object getPropertyInternal(String key)
getPropertyInternal in class AbstractConfigurationkey - key to use for mappingprotected boolean isEmptyInternal()
isEmptyInternal in class AbstractConfigurationtrue if Configuration is empty,
 false otherwise.protected boolean containsKeyInternal(String key)
containsKeyInternal in class AbstractConfigurationkey - the configuration keytrue if Configuration contain given key,
 false otherwise.protected void clearPropertyDirect(String key)
clearPropertyDirect in class AbstractConfigurationkey - the key to remove along with corresponding value.protected void clearInternal()
AbstractConfigurationclear()
 after some preparations have been made. This base implementation uses
 the iterator provided by getKeys() to remove every single
 property. Subclasses should override this method if there is a more
 efficient way of clearing the configuration.clearInternal in class AbstractConfigurationprotected int sizeInternal()
size() with a read lock held. The base implementation provided
 here calculates the size based on the iterator returned by
 getKeys(). Sub classes which can determine the size in a more
 efficient way should override this method. This implementation obtains the size directly from the map
 used as data store. So this is a rather efficient implementation.sizeInternal in class AbstractConfigurationprotected Iterator<String> getKeysInternal()
getKeysInternal in class AbstractConfigurationpublic Object clone()
clone in class BaseEventSourceCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.