Top Description Fields Constructors Methods
ch.qos.logback.core.model.util

public Class VariableSubstitutionsHelper

extends ContextAwareBase
implements ContextAwarePropertyContainer
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.spi.ContextAwarePropertyContainer, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.PropertyContainer
Imports
ch.qos.logback.core.Context, ch.qos.logback.core.spi.ContextAwareBase, .ContextAwarePropertyContainer, .ScanException, ch.qos.logback.core.util.OptionHelper, java.util.HashMap, .Map

Helper methods to deal with properties.
Since
1.5.1

Field Summary

Modifier and TypeField and Description
protected Map<String, String>
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
addSubstitutionProperty(String key, String value)

Implements ch.qos.logback.core.spi.PropertyContainer.addSubstitutionProperty.

Add a property to the properties of this execution context.
public Map<String, String>
public String
public String
subst(String ref)

Implements ch.qos.logback.core.spi.ContextAwarePropertyContainer.subst.

This method is used tp perform variable substitution.
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextgetDeclaredOrigingetStatusManagersetContext

Field Detail

propertiesMapback to summary
protected Map<String, String> propertiesMap

Constructor Detail

VariableSubstitutionsHelperback to summary
public VariableSubstitutionsHelper(Context context)
VariableSubstitutionsHelperback to summary
public VariableSubstitutionsHelper(Context context, Map<String, String> otherMap)

Method Detail

addSubstitutionPropertyback to summary
public void addSubstitutionProperty(String key, String value)

Implements ch.qos.logback.core.spi.PropertyContainer.addSubstitutionProperty.

Add a property to the properties of this execution context. If the property exists already, it is overwritten.

Annotations
@Override
getCopyOfPropertyMapback to summary
public Map<String, String> getCopyOfPropertyMap()

Implements ch.qos.logback.core.spi.PropertyContainer.getCopyOfPropertyMap.

Annotations
@Override
getPropertyback to summary
public String getProperty(String key)

Implements ch.qos.logback.core.spi.PropertyContainer.getProperty.

Annotations
@Override
substback to summary
public String subst(String ref)

Implements ch.qos.logback.core.spi.ContextAwarePropertyContainer.subst.

Doc from ch.qos.logback.core.spi.ContextAwarePropertyContainer.subst.

This method is used tp perform variable substitution.

Returns:String

a new string after variable substitution, if any.

Annotations
@Override