- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.processor.DefaultProcessor
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
SiftProcessor
public class DefaultProcessor extends ContextAwareBase
DefaultProcessor traverses the Model produced at an earlier step and performs actual configuration of logback according to the handlers it was given.- Since:
- 1.3.0
- Author:
- Ceki Gülcü
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelInterpretationContextmic-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description DefaultProcessor(Context context, ModelInterpretationContext mic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnalyser(Class<? extends Model> modelClass, Supplier<ModelHandlerBase> analyserSupplier)voidaddHandler(Class<? extends Model> modelClass, ModelHandlerFactoryMethod modelFactoryMethod)protected voidanalyseDependencies(Model model)ChainedModelFiltergetPhaseOneFilter()ChainedModelFiltergetPhaseTwoFilter()protected intmainTraverse(Model model, ModelFilter modelFiler)voidprocess(Model model)protected intsecondPhaseTraverse(Model model, ModelFilter modelFilter)-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
mic
protected final ModelInterpretationContext mic
-
-
Constructor Detail
-
DefaultProcessor
public DefaultProcessor(Context context, ModelInterpretationContext mic)
-
-
Method Detail
-
addHandler
public void addHandler(Class<? extends Model> modelClass, ModelHandlerFactoryMethod modelFactoryMethod)
-
addAnalyser
public void addAnalyser(Class<? extends Model> modelClass, Supplier<ModelHandlerBase> analyserSupplier)
-
getPhaseOneFilter
public ChainedModelFilter getPhaseOneFilter()
-
getPhaseTwoFilter
public ChainedModelFilter getPhaseTwoFilter()
-
analyseDependencies
protected void analyseDependencies(Model model)
-
mainTraverse
protected int mainTraverse(Model model, ModelFilter modelFiler)
-
secondPhaseTraverse
protected int secondPhaseTraverse(Model model, ModelFilter modelFilter)
-
-