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.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) DefaultNestedComponentRegistry
(package private) Interpreter
(package private) final List<InPlayListener>
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.(package private) void
fireInPlay
(SaxEvent event) getObject
(int i) getProperty
(String key) If a key is found in propertiesMap then return it.boolean
isEmpty()
boolean
void
pushObject
(Object o) boolean
(package private) void
setPropertiesMap
(Map<String, String> propertiesMap) (package private) String
updateLocationInfo
(String msg) Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
objectStack
-
objectMap
-
propertiesMap
-
joranInterpreter
Interpreter joranInterpreter -
listenerList
-
defaultNestedComponentRegistry
DefaultNestedComponentRegistry defaultNestedComponentRegistry
-
-
Constructor Details
-
InterpretationContext
-
-
Method Details
-
getDefaultNestedComponentRegistry
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMap
in interfacePropertyContainer
-
setPropertiesMap
-
updateLocationInfo
-
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
-
fireInPlay
-