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,DefineModelHandler,EventEvaluatorModelHandler,ImplicitModelHandler,IncludeModelHandler,ParamModelHandler,PropertyModelHandler,RefContainerDependencyAnalyser,ShutdownHookModelHandler,StatusListenerModelHandler,TimestampModelHandler
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubclasses should return the sub-class of Model that they expect to handle.abstract voidhandle(InterpretationContext intercon, Model model)protected booleanisSupportedModelType(Model model)voidpostHandle(InterpretationContext 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 sub-class 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(Model)
-
isSupportedModelType
-
handle
public abstract void handle(InterpretationContext intercon, Model model) throws ModelHandlerException- Throws:
ModelHandlerException
-
postHandle
- Throws:
ModelHandlerException
-
toString
-