1   package ch.qos.logback.access.common.boolex;
2   
3   import ch.qos.logback.access.common.spi.IAccessEvent;
4   import ch.qos.logback.core.boolex.EvaluationException;
5   import ch.qos.logback.core.boolex.EventEvaluatorBase;
6   
7   public class StubEventEvaluator  extends EventEvaluatorBase<IAccessEvent>  {
8   
9       static public final String MSG_0 = "This is a stub for JaninoEventEvaluator which was removed in logback-access version 2.0.5";
10      static public final String MSG_1 = "You can migrate existing configurations to Java-only equivalents by extending the EventEvaluatorBase class.";
11  
12  
13      String expression;
14  
15      @Override
16      public void start() {
17          stop();
18          addWarn(MSG_0);
19          addWarn(MSG_1);
20      }
21  
22      @Override
23      public boolean evaluate(IAccessEvent iAccessEvent) throws NullPointerException, EvaluationException {
24          return false;
25      }
26  
27  
28      public String getExpression() {
29          return expression;
30      }
31  
32      public void setExpression(String expression) {
33          this.expression = expression;
34      }
35  
36  }