logback-android/src/main/java/ch/qos/logback/core/joran/action/AbstractEventEvaluatorAction.java
@SuppressWarnings("unchecked")
  public void end(InterpretationContext ec, String e) {
    if (inError) {
      return;
    }

    if (evaluator instanceof LifeCycle) {
      ((LifeCycle) evaluator).start();
      addInfo("Starting evaluator named [" + evaluator.getName() + "]");
    }

    Object o = ec.peekObject();

    if (o != evaluator) {
      addWarn("The object on the top the of the stack is not the evaluator pushed earlier.");
    } else {
      ec.popObject();

      try {
        Map<String, EventEvaluator<?>> evaluatorMap = (Map<String, EventEvaluator<?>>) context
            .getObject(CoreConstants.EVALUATOR_MAP);
        if(evaluatorMap == null) {
          addError("Could not find EvaluatorMap");
        } else {
          evaluatorMap.put(evaluator.getName(), evaluator);
        }
      } catch (Exception ex) {
        addError("Could not set evaluator named [" + evaluator + "].", ex);
      }
    }
  }
@SuppressWarnings("unchecked")
  public void end(InterpretationContext ec, String e) {
    if (inError) {
      return;
    }

    if (evaluator instanceof LifeCycle) {
      ((LifeCycle) evaluator).start();
      addInfo("Starting evaluator named [" + evaluator.getName() + "]");
    }

    Object o = ec.peekObject();

    if (o != evaluator) {
      addWarn("The object on the top the of the stack is not the evaluator pushed earlier.");
    } else {
      ec.popObject();

      try {
        Map<String, EventEvaluator<?>> evaluatorMap = (Map<String, EventEvaluator<?>>) context
            .getObject(CoreConstants.EVALUATOR_MAP);
        if(evaluatorMap == null) {
          addError("Could not find EvaluatorMap");
        } else {
          evaluatorMap.put(evaluator.getName(), evaluator);
        }
      } catch (Exception ex) {
        addError("Could not set evaluator named [" + evaluator + "].", ex);
      }
    }
  }
@ SuppressWarnings ( "unchecked" ) public void end ( InterpretationContext ec , String e ) { if ( inError ) { return ; } if ( evaluator instanceof LifeCycle ) { ( ( LifeCycle ) evaluator ) . start ( ) ; addInfo ( "Starting evaluator named [" + evaluator . getName ( ) + "]" ) ; } Object o = ec . peekObject ( ) ; if ( o != evaluator ) { addWarn ( "The object on the top the of the stack is not the evaluator pushed earlier." ) ; } else { ec . popObject ( ) ; try { Map < String , EventEvaluator < ? > > evaluatorMap = ( Map < String , EventEvaluator < ? > > ) context . getObject ( CoreConstants . EVALUATOR_MAP ) ; if ( evaluatorMap == null ) { addError ( "Could not find EvaluatorMap" ) ; } else { evaluatorMap . put ( evaluator . getName ( ) , evaluator ) ; } } catch ( Exception ex ) { addError ( "Could not set evaluator named [" + evaluator + "]." , ex ) ; } } }
Once the children elements are also parsed, now is the time to activate the
evaluator options.
Once the children elements are also parsed now is the time to activate the evaluator options .