Logback API
Version 0.9.8

ch.qos.logback.core.joran.spi
Class InterpretationContext

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.joran.spi.InterpretationContext
All Implemented Interfaces:
ContextAware

public class InterpretationContext
extends ContextAwareBase

The ExecutionContext 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
InterpretationContext(Context context, Interpreter joranInterpreter)
           
 
Method Summary
 void addInPlayListener(InPlayListener ipl)
           
 void addSubstitutionProperties(Map<String,String> propertyMap)
           
 void addSubstitutionProperties(Properties props)
           
 void addSubstitutionProperty(String key, String value)
          Add a property to the properties of this execution context.
 Interpreter getJoranInterpreter()
           
 Locator getLocator()
           
 Object getObject(int i)
           
 Map<String,Object> getObjectMap()
           
 Stack<Object> getObjectStack()
           
 String getSubstitutionProperty(String key)
           
 boolean isEmpty()
           
 Object peekObject()
           
 Object popObject()
           
 void pushObject(Object o)
           
 boolean removeInPlayListener(InPlayListener ipl)
           
 String subst(String value)
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpretationContext

public InterpretationContext(Context context,
                             Interpreter joranInterpreter)
Method Detail

getLocator

public Locator getLocator()

getJoranInterpreter

public Interpreter getJoranInterpreter()

getObjectStack

public Stack<Object> getObjectStack()

isEmpty

public boolean isEmpty()

peekObject

public Object peekObject()

pushObject

public void pushObject(Object o)

popObject

public Object popObject()

getObject

public Object getObject(int i)

getObjectMap

public Map<String,Object> getObjectMap()

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)

addSubstitutionProperties

public void addSubstitutionProperties(Map<String,String> propertyMap)

getSubstitutionProperty

public String getSubstitutionProperty(String key)

subst

public String subst(String value)

addInPlayListener

public void addInPlayListener(InPlayListener ipl)

removeInPlayListener

public boolean removeInPlayListener(InPlayListener ipl)

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.