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 TypeMethodDescriptionprotected voidaddPropertyDirect(String key, Object value) protected voidbooleancontainsKey(String key) getKeys()getProperty(String key) Default behavior gets overriden with that one from hybris.org.apache.commons.lang.text.StrSubstitutorbooleanisEmpty()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, subsetMethods inherited from class org.apache.commons.configuration.event.EventSource
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, clone, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents
-
Method Details
-
addPropertyDirect
- Specified by:
addPropertyDirectin classorg.apache.commons.configuration.AbstractConfiguration- See Also:
-
AbstractConfiguration.addPropertyDirect(String, Object)
-
containsKey
- See Also:
-
Configuration.containsKey(String)
-
getKeys
- See Also:
-
Configuration.getKeys()
-
getProperty
- See Also:
-
Configuration.getProperty(String)
-
isEmpty
public boolean isEmpty()- See Also:
-
Configuration.isEmpty()
-
getString
- Specified by:
getStringin interfaceorg.apache.commons.configuration.Configuration- Overrides:
getStringin classorg.apache.commons.configuration.AbstractConfiguration- See Also:
-
Configuration.getString(String)
-
getString
Default behavior gets overriden with that one from hybris. This disables theConfigurationInterpolatorwhich would be created/asked with every call for an appropriateStrLookupwhich itself deals with anStrSubstitutorand so on. (only pitfall is that variable replacement as commons defines it doesn't work anymore)- Specified by:
getStringin interfaceorg.apache.commons.configuration.Configuration- Overrides:
getStringin classorg.apache.commons.configuration.AbstractConfiguration- See Also:
-
AbstractConfiguration.getString(java.lang.String, java.lang.String)
-
clearPropertyDirect
- Overrides:
clearPropertyDirectin classorg.apache.commons.configuration.AbstractConfiguration
-
getSubstitutor
public org.apache.commons.lang.text.StrSubstitutor getSubstitutor()- Overrides:
getSubstitutorin classorg.apache.commons.configuration.AbstractConfiguration
-