public void end(InterpretationContext ec, String name) { addInfo("End of configuration."); ec.popObject(); } }
private void verifyAndPop(InterpretationContext ic) { Object o = ic.peekObject(); Assert.state(o != null, "Unexpected null object on stack"); Assert.isInstanceOf(SpringProfileAction.class, o, "logback stack error"); Assert.state(o == this, "ProfileAction different than current one on stack"); ic.popObject(); }
public void end(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != root) { addWarn("The object on the top the of the stack is not the root logger"); addWarn("It is: " + o); } else { ec.popObject(); } }
public void end(InterpretationContext ec, String e) { if (inError) { return; } Object o = ec.peekObject(); if (o != logger) { addWarn("The object on the top the of the stack is not " + logger + " pushed earlier"); addWarn("It is: " + o); } else { ec.popObject(); } }
@Override public void end(InterpretationContext ic, String name) throws ActionException { if (inError) return; ic.getContext().register(receiver); receiver.start(); Object o = ic.peekObject(); if (o != receiver) { addWarn("The object at the of the stack is not the remote " + "pushed earlier."); } else { ic.popObject(); } }
@Override public void end(InterpretationContext ec, String name) throws ActionException { if (inError) { return; } Object o = ec.peekObject(); if (o != lcl) { addWarn("The object on the top the of the stack is not the LoggerContextListener pushed earlier."); } else { if (lcl instanceof LifeCycle) { ((LifeCycle) lcl).start(); addInfo("Starting LoggerContextListener"); } ((LoggerContext) context).addListener(lcl); ec.popObject(); } }
public void end(InterpretationContext ec, String name) { addInfo("End of configuration."); ec.popObject(); } }
public void end(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != root) { addWarn("The object on the top the of the stack is not the root logger"); addWarn("It is: " + o); } else { ec.popObject(); } }
public void end(InterpretationContext ec, String e) { if (inError) { return; } Object o = ec.peekObject(); if (o != logger) { addWarn("The object on the top the of the stack is not "+logger+" pushed earlier"); addWarn("It is: " + o); } else { ec.popObject(); } }
public void end(InterpretationContext ec, String e) { if (inError) { return; } if (statusListener instanceof LifeCycle) { ((LifeCycle) statusListener).start(); } Object o = ec.peekObject(); if (o != statusListener) { addWarn("The object at the of the stack is not the statusListener pushed earlier."); } else { ec.popObject(); } } }
"IfAction different then current one on stack"); ic.popObject();
/** * Once the children elements are also parsed, now is the time to activate the * appender options. */ public void end(InterpretationContext ec, String name) { if (inError) { return; } if (appender instanceof LifeCycle) { ((LifeCycle) appender).start(); } Object o = ec.peekObject(); if (o != appender) { addWarn("The object at the of the stack is not the appender named [" + appender.getName() + "] pushed earlier."); } else { ec.popObject(); } } }
@Override public void end(InterpretationContext ic, String name) throws ActionException { if (inError) return; ic.getContext().register(receiver); receiver.start(); Object o = ic.peekObject(); if (o != receiver) { addWarn("The object at the of the stack is not the remote " + "pushed earlier."); } else { ic.popObject(); } }
@Override public void end(InterpretationContext ec, String name) throws ActionException { if (inError) { return; } Object o = ec.peekObject(); if (o != lcl) { addWarn("The object on the top the of the stack is not the LoggerContextListener pushed earlier."); } else { if (lcl instanceof LifeCycle) { ((LifeCycle) lcl).start(); addInfo("Starting LoggerContextListener"); } ((LoggerContext) context).addListener(lcl); ec.popObject(); } }
/** * Now property definer is initialized by all properties and we can put * property value to context */ public void end(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != definer) { addWarn("The object at the of the stack is not the property definer for property named [" + propertyName + "] pushed earlier."); } else { addInfo("Popping property definer for property named [" + propertyName + "] from the object stack"); ec.popObject(); // let's put defined property and value to context but only if it is // not null String propertyValue = definer.getPropertyValue(); if(propertyValue != null) { ActionUtil.setProperty(ec, propertyName, propertyValue, scope); } } } }
addWarn("The object on the top the of the stack is not the evaluator pushed earlier."); } else { ec.popObject();
addError("The object on the top the of the stack is not the component pushed earlier."); } else { ec.popObject();
@Override public void end(InterpretationContext ec, String name) { addInfo("End of configuration."); ec.popObject(); } }
public void end(InterpretationContext ec, String name) { if (inError) { return; } Object o = ec.peekObject(); if (o != root) { addWarn("The object on the top the of the stack is not the root logger"); addWarn("It is: " + o); } else { ec.popObject(); } }
public void end(InterpretationContext ec, String e) { if (inError) { return; } Object o = ec.peekObject(); if (o != logger) { addWarn("The object on the top the of the stack is not "+logger+" pushed earlier"); addWarn("It is: " + o); } else { ec.popObject(); } }