Class ModelInterpretationContext

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelInterpretationContext
All Implemented Interfaces:
ContextAware, PropertyContainer

public class ModelInterpretationContext extends ContextAwareBase implements PropertyContainer
  • Field Details

  • Constructor Details

    • ModelInterpretationContext

      public ModelInterpretationContext(Context context)
    • ModelInterpretationContext

      public ModelInterpretationContext(Context context, Object configuratorHint)
    • ModelInterpretationContext

      public ModelInterpretationContext(ModelInterpretationContext otherMic)
  • Method Details

    • getObjectMap

      public Map<String,Object> getObjectMap()
    • createAppenderBags

      public void createAppenderBags()
    • getTopModel

      public Model getTopModel()
    • setTopModel

      public void setTopModel(Model topModel)
    • pushModel

      public void pushModel(Model m)
    • peekModel

      public Model peekModel()
    • isModelStackEmpty

      public boolean isModelStackEmpty()
    • popModel

      public Model popModel()
    • getObjectStack

      public Stack<Object> getObjectStack()
    • isObjectStackEmpty

      public boolean isObjectStackEmpty()
    • peekObject

      public Object peekObject()
    • pushObject

      public void pushObject(Object o)
    • popObject

      public Object popObject()
    • getObject

      public Object getObject(int i)
    • getConfiguratorHint

      public Object getConfiguratorHint()
    • setConfiguratorHint

      public void setConfiguratorHint(Object configuratorHint)
    • getBeanDescriptionCache

      public BeanDescriptionCache getBeanDescriptionCache()
    • subst

      public String subst(String ref)
    • 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)
    • getDefaultNestedComponentRegistry

      public DefaultNestedComponentRegistry getDefaultNestedComponentRegistry()
    • addDependencyDefinition

      public void addDependencyDefinition(DependencyDefinition dd)
    • getDependencyDefinitions

      public List<DependencyDefinition> getDependencyDefinitions()
    • getDependeeNamesForModel

      public List<String> getDependeeNamesForModel(Model model)
    • hasDependers

      public boolean hasDependers(String dependeeName)
    • markStartOfNamedDependee

      public void markStartOfNamedDependee(String name)
    • isNamedDependeeStarted

      public boolean isNamedDependeeStarted(String name)
    • getProperty

      public String getProperty(String key)
      If a key is found in propertiesMap then return it. Otherwise, delegate to the context.
      Specified by:
      getProperty in interface PropertyContainer
    • getCopyOfPropertyMap

      public Map<String,String> getCopyOfPropertyMap()
      Specified by:
      getCopyOfPropertyMap in interface PropertyContainer
    • addImport

      public void addImport(String stem, String fqcn)
      Add an import to the importMao
      Parameters:
      stem - the class to import
      fqcn - the fully qualified name of the class
      Since:
      1.3
    • getImportMapCopy

      public Map<String,String> getImportMapCopy()
    • getImport

      public String getImport(String stem)
      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