Class PropertiesConfiguratorAction
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.core.joran.action.ResourceAction
ch.qos.logback.classic.joran.action.PropertiesConfiguratorAction
- All Implemented Interfaces:
ContextAware
Build an
PropertiesConfiguratorModel instance from SAX events.- Since:
- 1.5.8
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTEFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCurrentModel(SaxEventInterpretationContext saxEventInterpretationContext, String localName, Attributes attributes) Builds aPropertiesConfiguratorModelinstance for the current XML element.protected PropertiesConfiguratorModelCreates a new instance ofPropertiesConfiguratorModel.Methods inherited from class ResourceAction
validPreconditionsMethods inherited from class BaseModelAction
begin, body, endMethods inherited from class Action
atLine, getColumnNumber, getLineColStr, getLineNumber, nearLine, toStringMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
PropertiesConfiguratorAction
public PropertiesConfiguratorAction()
-
-
Method Details
-
makeNewResourceModel
Creates a new instance ofPropertiesConfiguratorModel.- Specified by:
makeNewResourceModelin classResourceAction- Returns:
- a new
PropertiesConfiguratorModelinstance
-
buildCurrentModel
public Model buildCurrentModel(SaxEventInterpretationContext saxEventInterpretationContext, String localName, Attributes attributes) Builds aPropertiesConfiguratorModelinstance for the current XML element.This method extends the parent class behavior by additionally extracting and setting the scan attribute value on the returned model.
- Overrides:
buildCurrentModelin classResourceAction- Parameters:
saxEventInterpretationContext- the context for interpreting SAX eventslocalName- the name of the XML element being processedattributes- the attributes of the XML element- Returns:
- a configured
PropertiesConfiguratorModelinstance - Throws:
IllegalStateException- if the model returned by the parent class is not aPropertiesConfiguratorModel
-