- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.GenericXMLConfigurator
-
- ch.qos.logback.core.joran.JoranConfiguratorBase<E>
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
JoranConfigurator
public abstract class JoranConfiguratorBase<E> extends GenericXMLConfigurator
A JoranConfiguratorBase lays most of the groundwork for concrete configurators derived from it. Concrete configurators only need to implement theaddElementSelectorAndActionAssociations(ch.qos.logback.core.joran.spi.RuleStore)method.A JoranConfiguratorBase instance should not be used more than once to configure a Context.
- Author:
- Ceki Gülcü
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.joran.GenericXMLConfigurator
modelInterpretationContext, saxEventInterpreter
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description JoranConfiguratorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddElementSelectorAndActionAssociations(RuleStore rs)protected voidaddModelHandlerAssociations(DefaultProcessor defaultProcessor)voidbuildModelInterpretationContext()SaxEventInterpretationContextgetInterpretationContext()protected voidperformCheck(SanityChecker sc, Model model)protected voidsanityCheck(Model topModel)Perform sanity check and issue warning if necessary.protected voidsetImplicitRuleSupplier(SaxEventInterpreter interpreter)-
Methods inherited from class ch.qos.logback.core.joran.GenericXMLConfigurator
addDefaultNestedComponentRegistryRules, buildModelFromSaxEventList, buildSaxEventInterpreter, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, getModelInterpretationContext, getRuleStore, getTopURL, informContextOfURLUsedForConfiguration, initialElementPath, populateSaxEventRecorder, processModel, recallSafeConfiguration, registerSafeConfiguration, setTopURL
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
JoranConfiguratorBase
public JoranConfiguratorBase()
-
-
Method Detail
-
addElementSelectorAndActionAssociations
protected void addElementSelectorAndActionAssociations(RuleStore rs)
- Specified by:
addElementSelectorAndActionAssociationsin classGenericXMLConfigurator
-
sanityCheck
protected void sanityCheck(Model topModel)
Perform sanity check and issue warning if necessary.- Overrides:
sanityCheckin classGenericXMLConfigurator- Parameters:
topModel-
-
performCheck
protected void performCheck(SanityChecker sc, Model model)
-
setImplicitRuleSupplier
protected void setImplicitRuleSupplier(SaxEventInterpreter interpreter)
- Specified by:
setImplicitRuleSupplierin classGenericXMLConfigurator
-
buildModelInterpretationContext
public void buildModelInterpretationContext()
- Overrides:
buildModelInterpretationContextin classGenericXMLConfigurator
-
getInterpretationContext
public SaxEventInterpretationContext getInterpretationContext()
-
addModelHandlerAssociations
protected void addModelHandlerAssociations(DefaultProcessor defaultProcessor)
- Overrides:
addModelHandlerAssociationsin classGenericXMLConfigurator
-
-