Module ch.qos.logback.core
Class IfModelHandler
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.processor.ModelHandlerBase
-
- ch.qos.logback.core.model.processor.conditional.IfModelHandler
-
- All Implemented Interfaces:
ContextAware
public class IfModelHandler extends ModelHandlerBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONDITION_ATTR_DEPRECATED_MSGstatic StringCONDITION_ATTR_DEPRECATED_SEEstatic StringMISSING_JANINO_MSGstatic StringMISSING_JANINO_SEEstatic StringNEW_OPERATOR_DISALLOWED_MSGstatic StringNEW_OPERATOR_DISALLOWED_SEE-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description IfModelHandler(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<IfModel>getSupportedModelClass()Subclasses should return the subclass of Model that they expect to handle.voidhandle(ModelInterpretationContext mic, Model model)static ModelHandlerBasemakeInstance(Context context, ModelInterpretationContext ic)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
-
-
-
-
Field Detail
-
MISSING_JANINO_MSG
public static final String MISSING_JANINO_MSG
- See Also:
- Constant Field Values
-
MISSING_JANINO_SEE
public static final String MISSING_JANINO_SEE
- See Also:
- Constant Field Values
-
NEW_OPERATOR_DISALLOWED_MSG
public static final String NEW_OPERATOR_DISALLOWED_MSG
- See Also:
- Constant Field Values
-
NEW_OPERATOR_DISALLOWED_SEE
public static final String NEW_OPERATOR_DISALLOWED_SEE
- See Also:
- Constant Field Values
-
CONDITION_ATTR_DEPRECATED_MSG
public static final String CONDITION_ATTR_DEPRECATED_MSG
- See Also:
- Constant Field Values
-
CONDITION_ATTR_DEPRECATED_SEE
public static final String CONDITION_ATTR_DEPRECATED_SEE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IfModelHandler
public IfModelHandler(Context context)
-
-
Method Detail
-
makeInstance
public static ModelHandlerBase makeInstance(Context context, ModelInterpretationContext ic)
-
getSupportedModelClass
protected Class<IfModel> 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)
-
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
-
-