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
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionVariableSubstitutionsHelper(Context context) VariableSubstitutionsHelper(Context context, Map<String, String> otherMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubstitutionProperty(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, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextMethods inherited from interface ch.qos.logback.core.spi.ContextAwarePropertyContainer
getConfiguratorSupplierMethods inherited from interface ch.qos.logback.core.spi.PropertyContainer
addSubstitutionProperties
-
Field Details
-
propertiesMap
-
-
Constructor Details
-
VariableSubstitutionsHelper
-
VariableSubstitutionsHelper
-
-
Method Details
-
subst
Description copied from interface:ContextAwarePropertyContainerThis method is used tp perform variable substitution.- Specified by:
substin 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:
addSubstitutionPropertyin interfacePropertyContainer
-
getProperty
- Specified by:
getPropertyin interfacePropertyContainer
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-