chapters.onJoran.calculator
Class LiteralAction
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
chapters.onJoran.calculator.LiteralAction
- All Implemented Interfaces:
- ContextAware
public class LiteralAction
- extends Action
This action converts the value attribute of the associated element to an
integer and pushes the resulting Integer object on top of the execution
context stack.
It also illustrates usage of Joran's error reporting/handling paradigm.
- Author:
- Ceki Gülcü
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
VALUE_ATR
public static final String VALUE_ATR
- See Also:
- Constant Field Values
LiteralAction
public LiteralAction()
begin
public void begin(InterpretationContext ic,
String name,
Attributes attributes)
- Description copied from class:
Action
- Called when the parser encounters an element matching a
Pattern
.
- Specified by:
begin
in class Action
end
public void end(InterpretationContext ic,
String name)
- Specified by:
end
in class Action
Copyright © 2005-2013 QOS.ch. All Rights Reserved.