Class DelegatedOrneConfiguration

java.lang.Object
org.apache.commons.configuration2.event.BaseEventSource
org.apache.commons.configuration2.AbstractConfiguration
dev.orne.config.commons.DelegatedOrneConfiguration
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
Direct Known Subclasses:
DelegatedOrneMutableConfiguration

public class DelegatedOrneConfiguration extends org.apache.commons.configuration2.AbstractConfiguration implements org.apache.commons.configuration2.ImmutableConfiguration
Implementation of Apache Commons ImmutableConfiguration based on Config.
Since:
0.2
Version:
1.0, 2020-20
Author:
(w) Iker Hernaez
See Also:
  • ImmutableConfiguration
  • Config
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    protected void
    protected boolean
    protected boolean
    protected @NotNull Config
    Returns the delegated Orne configuration.
    protected Iterator<String>
    protected Object
    protected boolean

    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

    containsKey, containsValue, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getDouble, getDouble, getDouble, getDuration, getDuration, getEncodedString, getEncodedString, getEnum, getEnum, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getKeys, getList, getList, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, immutableSubset, isEmpty, size
  • Constructor Details

    • DelegatedOrneConfiguration

      public DelegatedOrneConfiguration(@NotNull @NotNull Config config)
      Creates a new instance.
      Parameters:
      config - The delegated Orne configuration
  • Method Details

    • getConfig

      @NotNull protected @NotNull Config getConfig()
      Returns the delegated Orne configuration.
      Returns:
      The delegated Orne configuration
    • isEmptyInternal

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

      protected boolean containsKeyInternal(String key)
      Specified by:
      containsKeyInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • containsValueInternal

      protected boolean containsValueInternal(Object value)
      Specified by:
      containsValueInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • getKeysInternal

      protected Iterator<String> getKeysInternal()
      Specified by:
      getKeysInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • getPropertyInternal

      protected Object getPropertyInternal(String key)
      Specified by:
      getPropertyInternal in class org.apache.commons.configuration2.AbstractConfiguration
    • addPropertyDirect

      protected void addPropertyDirect(String key, Object value)
      Specified by:
      addPropertyDirect in class org.apache.commons.configuration2.AbstractConfiguration
    • clearPropertyDirect

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