View Javadoc
1   /*
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2026, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v2.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
13   */
14  
15  package ch.qos.logback.access.common.boolex;
16  
17  import ch.qos.logback.access.common.spi.IAccessEvent;
18  import ch.qos.logback.core.boolex.EvaluationException;
19  import ch.qos.logback.core.boolex.EventEvaluatorBase;
20  
21  public class StubEventEvaluator  extends EventEvaluatorBase<IAccessEvent>  {
22  
23      static public final String MSG_0 = "This is a stub for JaninoEventEvaluator which was removed in logback-access version 2.0.5";
24      static public final String MSG_1 = "You can migrate existing configurations to Java-only equivalents by extending the EventEvaluatorBase class.";
25  
26  
27      String expression;
28  
29      @Override
30      public void start() {
31          stop();
32          addWarn(MSG_0);
33          addWarn(MSG_1);
34      }
35  
36      @Override
37      public boolean evaluate(IAccessEvent iAccessEvent) throws NullPointerException, EvaluationException {
38          return false;
39      }
40  
41  
42      public String getExpression() {
43          return expression;
44      }
45  
46      public void setExpression(String expression) {
47          this.expression = expression;
48      }
49  
50  }