Module ch.qos.logback.core
Class ByPropertiesConditionModelHandler
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.processor.ModelHandlerBase
-
- ch.qos.logback.core.model.processor.conditional.ByPropertiesConditionModelHandler
-
- All Implemented Interfaces:
ContextAware
public class ByPropertiesConditionModelHandler extends ModelHandlerBase
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description ByPropertiesConditionModelHandler(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<ByPropertiesConditionModel>getSupportedModelClass()Subclasses should return the subclass of Model that they expect to handle.voidhandle(ModelInterpretationContext mic, Model model)static ModelHandlerBasemakeInstance(Context context, ModelInterpretationContext mic)voidpostHandle(ModelInterpretationContext mic, Model model)-
Methods inherited from class ch.qos.logback.core.model.processor.ModelHandlerBase
isSupportedModelType, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
ByPropertiesConditionModelHandler
public ByPropertiesConditionModelHandler(Context context)
-
-
Method Detail
-
getSupportedModelClass
protected Class<ByPropertiesConditionModel> getSupportedModelClass()
Description copied from class:ModelHandlerBaseSubclasses 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.- Overrides:
getSupportedModelClassin classModelHandlerBase- Returns:
- supported model class
- See Also:
ModelHandlerBase.isSupportedModelType(Model)
-
makeInstance
public static ModelHandlerBase makeInstance(Context context, ModelInterpretationContext mic)
-
handle
public void handle(ModelInterpretationContext mic, Model model) throws ModelHandlerException
- Specified by:
handlein classModelHandlerBase- Throws:
ModelHandlerException
-
postHandle
public void postHandle(ModelInterpretationContext mic, Model model) throws ModelHandlerException
- Overrides:
postHandlein classModelHandlerBase- Throws:
ModelHandlerException
-
-