Class ConcurrentConfiguration

  • All Implemented Interfaces:
    org.apache.commons.configuration2.Configuration, org.apache.commons.configuration2.event.EventSource, org.apache.commons.configuration2.ImmutableConfiguration, org.apache.commons.configuration2.sync.SynchronizerSupport

    public class ConcurrentConfiguration
    extends org.apache.commons.configuration2.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.

    • 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 containsKeyInternal​(java.lang.String key)  
      protected boolean containsValueInternal​(java.lang.Object o)  
      java.util.Iterator getKeysInternal()  
      java.lang.Object getPropertyInternal​(java.lang.String key)  
      boolean isEmptyInternal()  
      • Methods inherited from class org.apache.commons.configuration2.AbstractConfiguration

        addErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearInternal, clearProperty, cloneInterpolator, contains, containsKey, containsValue, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getKeys, getKeysInternal, 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, sizeInternal, subset, unlock
      • Methods inherited from class org.apache.commons.configuration2.event.BaseEventSource

        addEventListener, clearErrorListeners, clearEventListeners, clone, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEvents
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.commons.configuration2.ImmutableConfiguration

        getEnum, getEnum
    • 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.configuration2.AbstractConfiguration
      • getPropertyInternal

        public java.lang.Object getPropertyInternal​(java.lang.String key)
        Specified by:
        getPropertyInternal in class org.apache.commons.configuration2.AbstractConfiguration
      • getKeysInternal

        public java.util.Iterator getKeysInternal()
        Specified by:
        getKeysInternal in class org.apache.commons.configuration2.AbstractConfiguration
      • containsKeyInternal

        public boolean containsKeyInternal​(java.lang.String key)
        Specified by:
        containsKeyInternal in class org.apache.commons.configuration2.AbstractConfiguration
      • containsValueInternal

        protected boolean containsValueInternal​(java.lang.Object o)
        Specified by:
        containsValueInternal in class org.apache.commons.configuration2.AbstractConfiguration
      • isEmptyInternal

        public boolean isEmptyInternal()
        Specified by:
        isEmptyInternal in class org.apache.commons.configuration2.AbstractConfiguration
      • clearPropertyDirect

        protected void clearPropertyDirect​(java.lang.String key)
        Specified by:
        clearPropertyDirect in class org.apache.commons.configuration2.AbstractConfiguration