java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelHandlerBase
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
AppenderModelHandler
,AppenderRefDependencyAnalyser
,AppenderRefModelHandler
,ConfigurationModelHandler
,ContextNameModelHandler
,DefineModelHandler
,ElseModelHandler
,EventEvaluatorModelHandler
,IfModelHandler
,ImplicitModelHandler
,ImportModelHandler
,IncludeModelHandler
,InsertFromJNDIModelHandler
,LevelModelHandler
,LoggerContextListenerModelHandler
,LoggerModelHandler
,NOPModelHandler
,NOPSiftModelHandler
,ParamModelHandler
,PropertyModelHandler
,ReceiverModelHandler
,RefContainerDependencyAnalyser
,RootLoggerModelHandler
,SequenceNumberGeneratorModelHandler
,SerializeModelModelHandler
,ShutdownHookModelHandler
,SiftModelHandler
,StatusListenerModelHandler
,ThenModelHandler
,TimestampModelHandler
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSubclasses should return the subclass of Model that they expect to handle.abstract void
handle
(ModelInterpretationContext mic, Model model) protected boolean
isSupportedModelType
(Model model) void
postHandle
(ModelInterpretationContext mic, Model model) toString()
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
ModelHandlerBase
-
-
Method Details
-
getSupportedModelClass
Subclasses should return the subclass of Model that they expect to handle. The default implementation assumes that all Model classes are supported. This a very lax assumption which is usually not true.- Returns:
- supported model class
- See Also:
-
isSupportedModelType
-
handle
public abstract void handle(ModelInterpretationContext mic, Model model) throws ModelHandlerException - Throws:
ModelHandlerException
-
postHandle
- Throws:
ModelHandlerException
-
toString
-