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
public class InterpretationContext extends ContextAwareBase implements PropertyContainer
An InterpretationContext contains the contextual state of a Joran parsing session.Actionobjects depend on this context to exchange and store information.
-
-
Constructor Summary
Constructors Constructor Description InterpretationContext(Context context, Interpreter joranInterpreter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInPlayListener(InPlayListener ipl)voidaddSubstitutionProperties(Properties props)voidaddSubstitutionProperty(String key, String value)Add a property to the properties of this execution context.Map<String,String>getCopyOfPropertyMap()DefaultNestedComponentRegistrygetDefaultNestedComponentRegistry()InterpretergetJoranInterpreter()LocatorgetLocator()ObjectgetObject(int i)Map<String,Object>getObjectMap()Stack<Object>getObjectStack()StringgetProperty(String key)If a key is found in propertiesMap then return it.booleanisEmpty()booleanisListenerListEmpty()ObjectpeekObject()ObjectpopObject()voidpushObject(Object o)booleanremoveInPlayListener(InPlayListener ipl)Stringsubst(String value)-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
InterpretationContext
public InterpretationContext(Context context, Interpreter joranInterpreter)
-
-
Method Detail
-
getDefaultNestedComponentRegistry
public DefaultNestedComponentRegistry getDefaultNestedComponentRegistry()
-
getCopyOfPropertyMap
public Map<String,String> getCopyOfPropertyMap()
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-
getLocator
public Locator getLocator()
-
getJoranInterpreter
public Interpreter getJoranInterpreter()
-
isEmpty
public boolean isEmpty()
-
peekObject
public Object peekObject()
-
pushObject
public void pushObject(Object o)
-
popObject
public Object popObject()
-
getObject
public Object getObject(int i)
-
addSubstitutionProperty
public void addSubstitutionProperty(String key, String value)
Add a property to the properties of this execution context. If the property exists already, it is overwritten.
-
addSubstitutionProperties
public void addSubstitutionProperties(Properties props)
-
getProperty
public String getProperty(String key)
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getPropertyin interfacePropertyContainer
-
isListenerListEmpty
public boolean isListenerListEmpty()
-
addInPlayListener
public void addInPlayListener(InPlayListener ipl)
-
removeInPlayListener
public boolean removeInPlayListener(InPlayListener ipl)
-
-