Class HybrisConfiguration

java.lang.Object
org.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
de.hybris.platform.servicelayer.config.impl.HybrisConfiguration
All Implemented Interfaces:
org.apache.commons.configuration.Configuration

public class HybrisConfiguration extends org.apache.commons.configuration.AbstractConfiguration
Provides a Configuration implementation wrapping the hybris ConfigIntf implementation. Use this as adapter between commons-configuration and hybris.
  • 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

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    boolean
     
     
     
     
    getString(String key, String defaultValue)
    Default behavior gets overriden with that one from hybris.
    org.apache.commons.lang.text.StrSubstitutor
     
    boolean
     

    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, getStringArray, 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
  • Method Details

    • addPropertyDirect

      protected void addPropertyDirect(String key, Object value)
      Specified by:
      addPropertyDirect in class org.apache.commons.configuration.AbstractConfiguration
      See Also:
      • AbstractConfiguration.addPropertyDirect(String, Object)
    • containsKey

      public boolean containsKey(String key)
      See Also:
      • Configuration.containsKey(String)
    • getKeys

      public Iterator<String> getKeys()
      See Also:
      • Configuration.getKeys()
    • getProperty

      public Object getProperty(String key)
      See Also:
      • Configuration.getProperty(String)
    • isEmpty

      public boolean isEmpty()
      See Also:
      • Configuration.isEmpty()
    • getString

      public String getString(String key)
      Specified by:
      getString in interface org.apache.commons.configuration.Configuration
      Overrides:
      getString in class org.apache.commons.configuration.AbstractConfiguration
      See Also:
      • Configuration.getString(String)
    • getString

      public String getString(String key, String defaultValue)
      Default behavior gets overriden with that one from hybris. This disables the ConfigurationInterpolator which would be created/asked with every call for an appropriate StrLookup which itself deals with an StrSubstitutor and so on. (only pitfall is that variable replacement as commons defines it doesn't work anymore)
      Specified by:
      getString in interface org.apache.commons.configuration.Configuration
      Overrides:
      getString in class org.apache.commons.configuration.AbstractConfiguration
      See Also:
      • AbstractConfiguration.getString(java.lang.String, java.lang.String)
    • clearPropertyDirect

      protected void clearPropertyDirect(String key)
      Overrides:
      clearPropertyDirect in class org.apache.commons.configuration.AbstractConfiguration
    • getSubstitutor

      public org.apache.commons.lang.text.StrSubstitutor getSubstitutor()
      Overrides:
      getSubstitutor in class org.apache.commons.configuration.AbstractConfiguration