org.apache.log4j.joran.action
Class ImplicitAction
java.lang.Object
|
+--org.apache.log4j.spi.ComponentBase
|
+--org.apache.log4j.joran.action.Action
|
+--org.apache.log4j.joran.action.ImplicitAction
- All Implemented Interfaces:
- Component
- Direct Known Subclasses:
- NestComponentIA
- public abstract class ImplicitAction
- extends Action
ImplcitActions are like normal (explicit) actions except that are applied
by the parser when no other pattern applies. Since there can be many implcit
actions, each action is asked whether it applies in the given context. The
first impplcit action to respond postively will be applied. See also the
isApplicable(org.apache.log4j.joran.spi.Pattern, org.xml.sax.Attributes, org.apache.log4j.joran.spi.ExecutionContext)
method.
- Author:
- Ceki Gülcü
Method Summary |
abstract boolean |
isApplicable(org.apache.log4j.joran.spi.Pattern currentPattern,
Attributes attributes,
org.apache.log4j.joran.spi.ExecutionContext ec)
Check whether this implicit action is apprioriate in the current context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImplicitAction
public ImplicitAction()
isApplicable
public abstract boolean isApplicable(org.apache.log4j.joran.spi.Pattern currentPattern,
Attributes attributes,
org.apache.log4j.joran.spi.ExecutionContext ec)
- Check whether this implicit action is apprioriate in the current context.
- Parameters:
currentPattern
- This pattern contains the tag name of the current
element being parsed at the top of the stack.attributes
- The attributes of the current element to process.ec
-
- Returns:
- Whether the implicit action is applicable in the current context
Copyright 2000-2005 Apache Software Foundation.