ch.qos.logback.core.joran.action
Class ImplicitAction
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
ch.qos.logback.core.joran.action.ImplicitAction
- All Implemented Interfaces:
- ContextAware
- Direct Known Subclasses:
- NestedComponentIA, NestedSimplePropertyIA
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 implicit
actions, each action is asked whether it applies in the given context. The
first implicit action to respond positively is then applied. See also the
isApplicable(ch.qos.logback.core.joran.spi.Pattern, org.xml.sax.Attributes, ch.qos.logback.core.joran.spi.InterpretationContext)
method.
- Author:
- Ceki Gülcü
ImplicitAction
public ImplicitAction()
isApplicable
public abstract boolean isApplicable(Pattern currentPattern,
Attributes attributes,
InterpretationContext ec)
- Check whether this implicit action is appropriate 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 © 2005-2008 QOS.ch. All Rights Reserved.