Package ch.qos.logback.core.boolex
Class JaninoEventEvaluatorBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.boolex.EventEvaluatorBase<E>
ch.qos.logback.core.boolex.JaninoEventEvaluatorBase<E>
- Type Parameters:
E- event type
- All Implemented Interfaces:
EventEvaluator<E>,ContextAware,LifeCycle
- Direct Known Subclasses:
JaninoEventEvaluator,JaninoEventEvaluator
Abstract class which sets the groundwork for janino based evaluations.
- Author:
- Ceki Gülcü
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatcher(Matcher matcher) booleanEvaluates whether the event passed as parameter matches some user-specified criteria.protected abstract Stringprotected abstract String[]protected abstract Class<?>[]protected abstract Object[]getParameterValues(E event) voidsetExpression(String expression) voidstart()Methods inherited from class ch.qos.logback.core.boolex.EventEvaluatorBase
getName, isStarted, setName, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
ERROR_THRESHOLD
- See Also:
-
matcherList
-
-
Constructor Details
-
JaninoEventEvaluatorBase
public JaninoEventEvaluatorBase()
-
-
Method Details
-
getDecoratedExpression
-
getParameterNames
-
getParameterTypes
-
getParameterValues
-
start
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classEventEvaluatorBase<E>
-
evaluate
Description copied from interface:EventEvaluatorEvaluates whether the event passed as parameter matches some user-specified criteria.The
Evaluatoris free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.- Parameters:
event- The event to evaluate- Returns:
- true if there is a match, false otherwise.
- Throws:
EvaluationException- may be thrown during faulty evaluation
-
getExpression
-
setExpression
-
addMatcher
-
getMatcherList
-