Class ComponentModelHandler

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelHandlerBase
ch.qos.logback.tyler.base.handler.ComponentModelHandler
All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
Direct Known Subclasses:
DefineModelHandler, LoggerContextListenerModelHandler, SequenceNumberGeneratorModelHandler

public abstract class ComponentModelHandler extends ch.qos.logback.core.model.processor.ModelHandlerBase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComponentModelHandler(ch.qos.logback.core.Context context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addAdditionalJavaStatement(com.squareup.javapoet.MethodSpec.Builder methodSpec, ch.qos.logback.core.model.ComponentModel componentModel)
     
    protected int
     
    protected String
     
    void
    handle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model)
     
    protected void
    linkMethodSpecWithConfigureMethod(TylerModelInterpretationContext tmic, com.squareup.javapoet.MethodSpec componentMethodSpec)
     
    void
    postHandle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model)
     

    Methods inherited from class ch.qos.logback.core.model.processor.ModelHandlerBase

    getSupportedModelClass, isSupportedModelType, toString

    Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getInstanceNumber

      protected int getInstanceNumber()
    • handle

      public void handle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model) throws ch.qos.logback.core.model.processor.ModelHandlerException
      Specified by:
      handle in class ch.qos.logback.core.model.processor.ModelHandlerBase
      Throws:
      ch.qos.logback.core.model.processor.ModelHandlerException
    • addAdditionalJavaStatement

      protected void addAdditionalJavaStatement(com.squareup.javapoet.MethodSpec.Builder methodSpec, ch.qos.logback.core.model.ComponentModel componentModel)
    • getMethodNameForComponent

      protected String getMethodNameForComponent(String simpleName)
    • postHandle

      public void postHandle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model)
      Overrides:
      postHandle in class ch.qos.logback.core.model.processor.ModelHandlerBase
    • linkMethodSpecWithConfigureMethod

      protected void linkMethodSpecWithConfigureMethod(TylerModelInterpretationContext tmic, com.squareup.javapoet.MethodSpec componentMethodSpec)