001/*
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2026, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v2.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014
015package ch.qos.logback.access.common.boolex;
016
017import ch.qos.logback.access.common.spi.IAccessEvent;
018import ch.qos.logback.core.boolex.EvaluationException;
019import ch.qos.logback.core.boolex.EventEvaluatorBase;
020
021public class StubEventEvaluator  extends EventEvaluatorBase<IAccessEvent>  {
022
023    static public final String MSG_0 = "This is a stub for JaninoEventEvaluator which was removed in logback-access version 2.0.5";
024    static public final String MSG_1 = "You can migrate existing configurations to Java-only equivalents by extending the EventEvaluatorBase class.";
025
026
027    String expression;
028
029    @Override
030    public void start() {
031        stop();
032        addWarn(MSG_0);
033        addWarn(MSG_1);
034    }
035
036    @Override
037    public boolean evaluate(IAccessEvent iAccessEvent) throws NullPointerException, EvaluationException {
038        return false;
039    }
040
041
042    public String getExpression() {
043        return expression;
044    }
045
046    public void setExpression(String expression) {
047        this.expression = expression;
048    }
049
050}