java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.util.VariableSubstitutionsHelper
- All Implemented Interfaces:
ContextAware
,ContextAwarePropertyContainer
,PropertyContainer
public class VariableSubstitutionsHelper
extends ContextAwareBase
implements ContextAwarePropertyContainer
Helper methods to deal with properties.
- Since:
- 1.5.1
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
ConstructorDescriptionVariableSubstitutionsHelper
(Context context) VariableSubstitutionsHelper
(Context context, Map<String, String> otherMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubstitutionProperty
(String key, String value) Add a property to the properties of this execution context.getProperty
(String key) This method is used tp perform variable substitution.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
Methods inherited from interface ch.qos.logback.core.spi.PropertyContainer
addSubstitutionProperties
-
Field Details
-
propertiesMap
-
-
Constructor Details
-
VariableSubstitutionsHelper
-
VariableSubstitutionsHelper
-
-
Method Details
-
subst
Description copied from interface:ContextAwarePropertyContainer
This method is used tp perform variable substitution.- Specified by:
subst
in interfaceContextAwarePropertyContainer
- Parameters:
ref
-- Returns:
- a new string after variable substitution, if any.
-
addSubstitutionProperty
Add a property to the properties of this execution context. If the property exists already, it is overwritten.- Specified by:
addSubstitutionProperty
in interfacePropertyContainer
-
getProperty
- Specified by:
getProperty
in interfacePropertyContainer
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMap
in interfacePropertyContainer
-