Package ch.qos.logback.core.joran.action
Class AbstractEventEvaluatorAction
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.action.Action
-
- ch.qos.logback.core.joran.action.AbstractEventEvaluatorAction
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
EvaluatorAction
public abstract class AbstractEventEvaluatorAction extends Action
-
-
Field Summary
Fields Modifier and Type Field Description (package private) EventEvaluator<?>evaluator(package private) booleaninError-
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description AbstractEventEvaluatorAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbegin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes)Instantiates an evaluator of the given class and sets its name.protected abstract java.lang.StringdefaultClassName()Returns a default class name in case the class attribute is not specifiedvoidend(InterpretationContext ec, java.lang.String e)Once the children elements are also parsed, now is the time to activate the evaluator options.voidfinish(InterpretationContext ec)-
Methods inherited from class ch.qos.logback.core.joran.action.Action
body, getColumnNumber, getLineColStr, getLineNumber, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
evaluator
EventEvaluator<?> evaluator
-
inError
boolean inError
-
-
Method Detail
-
begin
public void begin(InterpretationContext ec, java.lang.String name, org.xml.sax.Attributes attributes)
Instantiates an evaluator of the given class and sets its name.
-
defaultClassName
protected abstract java.lang.String defaultClassName()
Returns a default class name in case the class attribute is not specified- Returns:
-
end
public void end(InterpretationContext ec, java.lang.String e)
Once the children elements are also parsed, now is the time to activate the evaluator options.
-
finish
public void finish(InterpretationContext ec)
-
-