Class EvaluatorFilter<E>

  • All Implemented Interfaces:
    ContextAware, LifeCycle

    @Deprecated(since="2022-01-27")
    public class EvaluatorFilter<E>
    extends AbstractMatcherFilter<E>
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    The value of the AbstractMatcherFilter.onMatch and AbstractMatcherFilter.onMismatch attributes is set to FilterReply.NEUTRAL, so that a badly configured evaluator filter does not disturb the functioning of the filter chain.

    It is expected that one of the two attributes will have its value changed to FilterReply.ACCEPT or FilterReply.DENY. That way, it is possible to decide if a given result must be returned after the evaluation either failed or succeeded.

    For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html

    • Constructor Detail

      • EvaluatorFilter

        public EvaluatorFilter()
        Deprecated.
    • Method Detail

      • setEvaluator

        public void setEvaluator​(EventEvaluator<E> evaluator)
        Deprecated.
      • decide

        public FilterReply decide​(E event)
        Deprecated.
        Description copied from class: Filter
        If the decision is FilterReply.DENY, then the event will be dropped. If the decision is FilterReply.NEUTRAL, then the next filter, if any, will be invoked. If the decision is FilterReply.ACCEPT then the event will be logged without consulting with other filters in the chain.
        Specified by:
        decide in class Filter<E>
        Parameters:
        event - The event to decide upon.