Class ConcurrentConfiguration

  • All Implemented Interfaces:
    org.apache.commons.configuration.Configuration

    public class ConcurrentConfiguration
    extends org.apache.commons.configuration.AbstractConfiguration
    Configuration view built on concurrent hash map for fast thread-safe access.

    Notes: Multi-property list aggregation will not work in this class. I.e. commons config normally combines all properties with the same key into one list property automatically. This class simply overwrites any existing mapping.

    • Field Summary

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addPropertyDirect​(java.lang.String key, java.lang.Object value)  
      protected void clearPropertyDirect​(java.lang.String key)  
      boolean containsKey​(java.lang.String key)  
      java.util.Iterator getKeys()  
      java.lang.Object getProperty​(java.lang.String key)  
      boolean isEmpty()  
      • Methods inherited from class org.apache.commons.configuration.AbstractConfiguration

        addErrorLogListener, addProperty, append, clear, clearProperty, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subset
      • Methods inherited from class org.apache.commons.configuration.event.EventSource

        addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, 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

      • ConcurrentConfiguration

        public ConcurrentConfiguration()
    • Method Detail

      • addPropertyDirect

        protected void addPropertyDirect​(java.lang.String key,
                                         java.lang.Object value)
        Specified by:
        addPropertyDirect in class org.apache.commons.configuration.AbstractConfiguration
      • getProperty

        public java.lang.Object getProperty​(java.lang.String key)
      • getKeys

        public java.util.Iterator getKeys()
      • containsKey

        public boolean containsKey​(java.lang.String key)
      • isEmpty

        public boolean isEmpty()
      • clearPropertyDirect

        protected void clearPropertyDirect​(java.lang.String key)
        Overrides:
        clearPropertyDirect in class org.apache.commons.configuration.AbstractConfiguration