001package ch.qos.logback.access.common.boolex;
002
003import ch.qos.logback.access.common.spi.IAccessEvent;
004import ch.qos.logback.core.boolex.EvaluationException;
005import ch.qos.logback.core.boolex.EventEvaluatorBase;
006
007public class StubEventEvaluator  extends EventEvaluatorBase<IAccessEvent>  {
008
009    static public final String MSG_0 = "This is a stub for JaninoEventEvaluator which was removed in logback-access version 2.0.5";
010    static public final String MSG_1 = "You can migrate existing configurations to Java-only equivalents by extending the EventEvaluatorBase class.";
011
012
013    String expression;
014
015    @Override
016    public void start() {
017        stop();
018        addWarn(MSG_0);
019        addWarn(MSG_1);
020    }
021
022    @Override
023    public boolean evaluate(IAccessEvent iAccessEvent) throws NullPointerException, EvaluationException {
024        return false;
025    }
026
027
028    public String getExpression() {
029        return expression;
030    }
031
032    public void setExpression(String expression) {
033        this.expression = expression;
034    }
035
036}