Package ch.qos.logback.core.joran.spi
Class InterpretationContext
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.spi.InterpretationContext
- All Implemented Interfaces:
ContextAware
,PropertyContainer
An InterpretationContext contains the contextual state of a Joran parsing
session.
Action
objects depend on this context to exchange and store
information.- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addSubstitutionProperty
(String key, String value) Add a property to the properties of this execution context.getObject
(int i) getProperty
(String key) If a key is found in propertiesMap then return it.boolean
isEmpty()
boolean
void
pushObject
(Object o) boolean
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
InterpretationContext
-
-
Method Details
-
getDefaultNestedComponentRegistry
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMap
in interfacePropertyContainer
-
getLocator
-
getJoranInterpreter
-
getObjectStack
-
isEmpty
public boolean isEmpty() -
peekObject
-
pushObject
-
popObject
-
getObject
-
getObjectMap
-
addSubstitutionProperty
Add a property to the properties of this execution context. If the property exists already, it is overwritten. -
addSubstitutionProperties
-
getProperty
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getProperty
in interfacePropertyContainer
-
subst
-
isListenerListEmpty
public boolean isListenerListEmpty() -
addInPlayListener
-
removeInPlayListener
-