Top Fields Constructors Methods
ch.qos.logback.core.model.processor

public Class ModelInterpretationContext

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
java.util.ArrayList, .Collections, .HashMap, .List, .Map, .Properties, .Stack, ch.qos.logback.core.Appender, .Context, ch.qos.logback.core.joran.JoranConstants, ch.qos.logback.core.joran.spi.DefaultNestedComponentRegistry, ch.qos.logback.core.joran.util.beans.BeanDescriptionCache, ch.qos.logback.core.model.Model, ch.qos.logback.core.model.util.VariableSubstitutionsHelper, ch.qos.logback.core.spi.AppenderAttachable, .ContextAwareBase, .ContextAwarePropertyContainer, .PropertyContainer

Field Summary

Modifier and TypeField and Description
private final BeanDescriptionCache
pack-priv Object
pack-priv final DefaultNestedComponentRegistry
pack-priv List<DependencyDefinition>
protected Map<String, String>
pack-priv Stack<Model>
pack-priv Map<String, Object>
pack-priv Stack<Object>
pack-priv final List<String>
pack-priv Model
protected VariableSubstitutionsHelper
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public
public
ModelInterpretationContext(Context context, Object configuratorHint)

public

Method Summary

Modifier and TypeMethod and Description
public void
public void
addImport(String
the class to import
stem
,
String
the fully qualified name of the class
fqcn
)

Add an import to the importMao

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 void
public BeanDescriptionCache
public Object
public Map<String, String>
public DefaultNestedComponentRegistry
public List<String>
public List<DependencyDefinition>
public String

Returns:

fully qualified name of the class corresponding to the stem. For unknown stems, returns the stem as is. If stem is null, null is returned.
getImport
(String
may be null
stem
)

Given a stem, get the fully qualified name of the class corresponding to the stem.

public Map<String, String>
public Object
getObject(int i)

public Map<String, Object>
public Stack<Object>
public String
getProperty(String key)

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

If a key is found in propertiesMap then return it.
public Model
public boolean
hasDependers(String dependeeName)

public boolean
public boolean
public boolean
public void
public Model
public Object
public Model
public Object
public void
public void
public void
setConfiguratorHint(Object configuratorHint)

public void
setTopModel(Model topModel)

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

beanDescriptionCacheback to summary
private final BeanDescriptionCache beanDescriptionCache
configuratorHintback to summary
pack-priv Object configuratorHint
defaultNestedComponentRegistryback to summary
pack-priv final DefaultNestedComponentRegistry defaultNestedComponentRegistry
dependencyDefinitionListback to summary
pack-priv List<DependencyDefinition> dependencyDefinitionList
importMapback to summary
protected Map<String, String> importMap
modelStackback to summary
pack-priv Stack<Model> modelStack
objectMapback to summary
pack-priv Map<String, Object> objectMap
objectStackback to summary
pack-priv Stack<Object> objectStack
startedDependeesback to summary
pack-priv final List<String> startedDependees
topModelback to summary
pack-priv Model topModel
variableSubstitutionsHelperback to summary
protected VariableSubstitutionsHelper variableSubstitutionsHelper

Constructor Detail

ModelInterpretationContextback to summary
public ModelInterpretationContext(Context context)
ModelInterpretationContextback to summary
public ModelInterpretationContext(Context context, Object configuratorHint)
ModelInterpretationContextback to summary
public ModelInterpretationContext(ModelInterpretationContext otherMic)

Method Detail

addDependencyDefinitionback to summary
public void addDependencyDefinition(DependencyDefinition dd)
addImportback to summary
public void addImport(String stem, String fqcn)

Add an import to the importMao

Parameters
stem:String

the class to import

fqcn:String

the fully qualified name of the class

Since
1.3
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
createAppenderBagsback to summary
public void createAppenderBags()
getBeanDescriptionCacheback to summary
public BeanDescriptionCache getBeanDescriptionCache()
getConfiguratorHintback to summary
public Object getConfiguratorHint()
getCopyOfPropertyMapback to summary
public Map<String, String> getCopyOfPropertyMap()

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

Annotations
@Override
getDefaultNestedComponentRegistryback to summary
public DefaultNestedComponentRegistry getDefaultNestedComponentRegistry()
getDependeeNamesForModelback to summary
public List<String> getDependeeNamesForModel(Model model)
getDependencyDefinitionsback to summary
public List<DependencyDefinition> getDependencyDefinitions()
getImportback to summary
public String getImport(String stem)

Given a stem, get the fully qualified name of the class corresponding to the stem. For unknown stems, returns the stem as is. If stem is null, null is returned.

Parameters
stem:String

may be null

Returns:String

fully qualified name of the class corresponding to the stem. For unknown stems, returns the stem as is. If stem is null, null is returned.

Since
1.3
getImportMapCopyback to summary
public Map<String, String> getImportMapCopy()
getObjectback to summary
public Object getObject(int i)
getObjectMapback to summary
public Map<String, Object> getObjectMap()
getObjectStackback to summary
public Stack<Object> getObjectStack()
getPropertyback to summary
public String getProperty(String key)

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

If a key is found in propertiesMap then return it. Otherwise, delegate to the context.

getTopModelback to summary
public Model getTopModel()
hasDependersback to summary
public boolean hasDependers(String dependeeName)
isModelStackEmptyback to summary
public boolean isModelStackEmpty()
isNamedDependeeStartedback to summary
public boolean isNamedDependeeStarted(String name)
isObjectStackEmptyback to summary
public boolean isObjectStackEmpty()
markStartOfNamedDependeeback to summary
public void markStartOfNamedDependee(String name)
peekModelback to summary
public Model peekModel()
peekObjectback to summary
public Object peekObject()
popModelback to summary
public Model popModel()
popObjectback to summary
public Object popObject()
pushModelback to summary
public void pushModel(Model m)
pushObjectback to summary
public void pushObject(Object o)
setConfiguratorHintback to summary
public void setConfiguratorHint(Object configuratorHint)
setTopModelback to summary
public void setTopModel(Model topModel)
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.