org.apache.log4j.joran.action
Class Action
java.lang.Object
|
+--org.apache.log4j.spi.ComponentBase
|
+--org.apache.log4j.joran.action.Action
- All Implemented Interfaces:
- Component
- Direct Known Subclasses:
- AppenderAction, AppenderRefAction, ConfigurationAction, ConversionRuleAction, ImplicitAction, JndiSubstitutionPropertyAction, LayoutAction, LevelAction, LoggerAction, NewRuleAction, ParamAction, PluginAction, PropertyAction, RootLoggerAction
- public abstract class Action
- extends ComponentBase
Most of the work for configuring log4j is done by Actions.
Methods of an Action are invoked while an XML file is parsed through.
This class is largely copied from the relevant class in the commons-digester
project of the Apache Software Foundation.
- Author:
- Craig McClanahan, Christopher Lenz, Ceki Gülcü
Method Summary |
abstract void |
begin(org.apache.log4j.joran.spi.ExecutionContext ec,
java.lang.String name,
Attributes attributes)
Called when the parser first encounters an element.
|
abstract void |
end(org.apache.log4j.joran.spi.ExecutionContext ec,
java.lang.String name)
|
protected int |
getColumnNumber(org.apache.log4j.joran.spi.ExecutionContext ec)
|
protected int |
getLineNumber(org.apache.log4j.joran.spi.ExecutionContext ec)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME_ATTRIBUTE
public static final java.lang.String NAME_ATTRIBUTE
- See Also:
- Constant Field Values
VALUE_ATTRIBUTE
public static final java.lang.String VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
FILE_ATTRIBUTE
public static final java.lang.String FILE_ATTRIBUTE
- See Also:
- Constant Field Values
CLASS_ATTRIBUTE
public static final java.lang.String CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
PATTERN_ATTRIBUTE
public static final java.lang.String PATTERN_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_CLASS_ATTRIBUTE
public static final java.lang.String ACTION_CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
Action
public Action()
begin
public abstract void begin(org.apache.log4j.joran.spi.ExecutionContext ec,
java.lang.String name,
Attributes attributes)
throws org.apache.log4j.joran.spi.ActionException
- Called when the parser first encounters an element.
The return value indicates whether child elements should be processed. If
the returned value is 'false', then child elements are ignored.
org.apache.log4j.joran.spi.ActionException
end
public abstract void end(org.apache.log4j.joran.spi.ExecutionContext ec,
java.lang.String name)
throws org.apache.log4j.joran.spi.ActionException
org.apache.log4j.joran.spi.ActionException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getColumnNumber
protected int getColumnNumber(org.apache.log4j.joran.spi.ExecutionContext ec)
getLineNumber
protected int getLineNumber(org.apache.log4j.joran.spi.ExecutionContext ec)
Copyright 2000-2005 Apache Software Foundation.