Module ch.qos.logback.classic
Class InsertFromJNDIAction
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.action.Action
-
- ch.qos.logback.core.joran.action.BaseModelAction
-
- ch.qos.logback.classic.joran.action.InsertFromJNDIAction
-
- All Implemented Interfaces:
ContextAware
public class InsertFromJNDIAction extends BaseModelAction
Insert an env-entry found in JNDI as a new context variable- Author:
- Ceki Gulcu
-
-
Field Summary
Fields Modifier and Type Field Description static StringAS_ATTRstatic StringENV_ENTRY_NAME_ATTR-
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description InsertFromJNDIAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelbuildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)Builds and returns a Model instance for the current XML element being processed.protected booleanvalidPreconditions(SaxEventInterpretationContext seic, String name, Attributes attributes)Validate preconditions of this action.-
Methods inherited from class ch.qos.logback.core.joran.action.BaseModelAction
begin, body, end
-
Methods inherited from class ch.qos.logback.core.joran.action.Action
atLine, getColumnNumber, getLineColStr, getLineNumber, nearLine, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
ENV_ENTRY_NAME_ATTR
public static final String ENV_ENTRY_NAME_ATTR
- See Also:
- Constant Field Values
-
AS_ATTR
public static final String AS_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InsertFromJNDIAction
public InsertFromJNDIAction()
-
-
Method Detail
-
buildCurrentModel
protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)
Description copied from class:BaseModelActionBuilds and returns a Model instance for the current XML element being processed.This method is called during the begin phase of XML processing to create a Model object that represents the current element. The returned model will be configured with the element's tag name, line number, and will be pushed onto the model stack.
- Specified by:
buildCurrentModelin classBaseModelAction- Parameters:
interpretationContext- the context for interpreting SAX events, providing access to the model stack and other interpretation statename- the name of the XML element being processedattributes- the attributes of the XML element- Returns:
- a new Model instance representing the current XML element
-
validPreconditions
protected boolean validPreconditions(SaxEventInterpretationContext seic, String name, Attributes attributes)
Description copied from class:BaseModelActionValidate preconditions of this action. By default, true is returned. Subclasses should override appropriately.- Overrides:
validPreconditionsin classBaseModelAction- Returns:
-
-