Module ch.qos.logback.classic
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
public class PropertiesConfiguratorAction extends ResourceAction
Build anPropertiesConfiguratorModelinstance from SAX events.- Since:
- 1.5.8
- Author:
- Ceki Gülcü
-
-
Field Summary
-
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 PropertiesConfiguratorAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelbuildCurrentModel(SaxEventInterpretationContext saxEventInterpretationContext, String localName, Attributes attributes)Builds aPropertiesConfiguratorModelinstance for the current XML element.protected PropertiesConfiguratorModelmakeNewResourceModel()Creates a new instance ofPropertiesConfiguratorModel.-
Methods inherited from class ch.qos.logback.core.joran.action.ResourceAction
validPreconditions
-
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
-
-
-
-
Constructor Detail
-
PropertiesConfiguratorAction
public PropertiesConfiguratorAction()
-
-
Method Detail
-
makeNewResourceModel
protected PropertiesConfiguratorModel 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
-
-