Module ch.qos.logback.core
Class ModelInterpretationContext
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelInterpretationContext
- All Implemented Interfaces:
ContextAware
,ContextAwarePropertyContainer
,PropertyContainer
public class ModelInterpretationContext
extends ContextAwareBase
implements ContextAwarePropertyContainer
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
ConstructorDescriptionModelInterpretationContext
(Context context) ModelInterpretationContext
(Context context, Object configuratorHint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Add an import to the importMaovoid
addSubstitutionProperty
(String key, String value) Add a property to the properties of this execution context.void
Supplier
<? extends GenericXMLConfigurator> Returns a supplier ofGenericXMLConfigurator
instance.getDependeeNamesForModel
(Model model) Given a stem, get the fully qualified name of the class corresponding to the stem.getObject
(int i) getProperty
(String key) If a key is found in propertiesMap then return it.boolean
hasDependers
(String dependeeName) boolean
boolean
isNamedDependeeStarted
(String name) boolean
void
popModel()
void
void
pushObject
(Object o) void
setConfiguratorHint
(Object configuratorHint) void
setConfiguratorSupplier
(Supplier<? extends GenericXMLConfigurator> configuratorSupplier) void
setTopModel
(Model topModel) 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
-
variableSubstitutionsHelper
-
importMap
-
-
Constructor Details
-
ModelInterpretationContext
-
ModelInterpretationContext
-
ModelInterpretationContext
-
-
Method Details
-
getObjectMap
-
createAppenderBags
-
getTopModel
-
setTopModel
-
pushModel
-
peekModel
-
isModelStackEmpty
-
popModel
-
getObjectStack
-
isObjectStackEmpty
-
peekObject
-
pushObject
-
popObject
-
getObject
-
getConfiguratorHint
-
setConfiguratorHint
-
getBeanDescriptionCache
-
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.
-
getDefaultNestedComponentRegistry
-
addDependencyDefinition
-
getDependencyDefinitions
-
getDependeeNamesForModel
-
hasDependers
-
markStartOfNamedDependee
-
isNamedDependeeStarted
-
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
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getProperty
in interfacePropertyContainer
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMap
in interfacePropertyContainer
-
addImport
-
getImportMapCopy
-
getImport
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
- may be null- 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.
- Since:
- 1.3
-
getConfiguratorSupplier
Returns a supplier ofGenericXMLConfigurator
instance. The returned value may be null.- Specified by:
getConfiguratorSupplier
in interfaceContextAwarePropertyContainer
- Returns:
- a supplier of
GenericXMLConfigurator
instance, may be null
-
setConfiguratorSupplier
public void setConfiguratorSupplier(Supplier<? extends GenericXMLConfigurator> configuratorSupplier) - Parameters:
configuratorSupplier
-
-