Class ModelHandlerBase
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
,ConfigurationModelHandler
,ContextNameModelHandler
,DefineModelHandler
,ElseModelHandler
,EventEvaluatorModelHandler
,IfModelHandler
,ImplicitModelHandler
,ImportModelHandler
,InsertFromJNDIModelHandler
,LevelModelHandler
,LoggerContextListenerModelHandler
,LoggerModelHandler
,NOPModelHandler
,NOPSiftModelHandler
,ParamModelHandler
,PropertyModelHandler
,ReceiverModelHandler
,RefContainerDependencyAnalyser
,RootLoggerModelHandler
,SequenceNumberGeneratorModelHandler
,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 intercon, Model model) protected boolean
isSupportedModelType
(Model model) void
postHandle
(ModelInterpretationContext intercon, 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 intercon, Model model) throws ModelHandlerException - Throws:
ModelHandlerException
-
postHandle
public void postHandle(ModelInterpretationContext intercon, Model model) throws ModelHandlerException - Throws:
ModelHandlerException
-
toString
-