- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.GenericXMLConfigurator
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
JoranConfiguratorBase
public abstract class GenericXMLConfigurator extends ContextAwareBase
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelInterpretationContextmodelInterpretationContextprotected SaxEventInterpretersaxEventInterpreter-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description GenericXMLConfigurator()
-
Method Summary
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
saxEventInterpreter
protected SaxEventInterpreter saxEventInterpreter
-
modelInterpretationContext
protected ModelInterpretationContext modelInterpretationContext
-
-
Constructor Detail
-
GenericXMLConfigurator
public GenericXMLConfigurator()
-
-
Method Detail
-
getModelInterpretationContext
public ModelInterpretationContext getModelInterpretationContext()
-
doConfigure
public final void doConfigure(URL url) throws JoranException
- Throws:
JoranException
-
doConfigure
public final void doConfigure(String filename) throws JoranException
- Throws:
JoranException
-
doConfigure
public final void doConfigure(File file) throws JoranException
- Throws:
JoranException
-
informContextOfURLUsedForConfiguration
@Deprecated public static void informContextOfURLUsedForConfiguration(Context context, URL url)
Deprecated.Removed in 1.5.27 with no replacement.
-
doConfigure
public final void doConfigure(InputStream inputStream) throws JoranException
- Throws:
JoranException
-
doConfigure
public final void doConfigure(InputStream inputStream, String systemId) throws JoranException
- Throws:
JoranException
-
addElementSelectorAndActionAssociations
protected abstract void addElementSelectorAndActionAssociations(RuleStore rs)
-
setImplicitRuleSupplier
protected abstract void setImplicitRuleSupplier(SaxEventInterpreter interpreter)
-
addDefaultNestedComponentRegistryRules
protected void addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)
-
initialElementPath
protected ElementPath initialElementPath()
-
buildSaxEventInterpreter
protected void buildSaxEventInterpreter(List<SaxEvent> saxEvents)
-
getRuleStore
public RuleStore getRuleStore()
-
buildModelInterpretationContext
protected void buildModelInterpretationContext()
-
doConfigure
public final void doConfigure(InputSource inputSource) throws JoranException
- Throws:
JoranException
-
populateSaxEventRecorder
public SaxEventRecorder populateSaxEventRecorder(InputSource inputSource) throws JoranException
- Throws:
JoranException
-
buildModelFromSaxEventList
public Model buildModelFromSaxEventList(List<SaxEvent> saxEvents) throws JoranException
- Throws:
JoranException
-
processModel
public void processModel(Model model)
-
sanityCheck
protected void sanityCheck(Model topModel)
Perform sanity check and issue warning if necessary. Default implementation does nothing.- Parameters:
topModel-- Since:
- 1.3.2 and 1.4.2
-
addModelHandlerAssociations
protected void addModelHandlerAssociations(DefaultProcessor defaultProcessor)
-
registerSafeConfiguration
public void registerSafeConfiguration(Model top)
Register the current event list in currently in the interpreter as a safe configuration point.- Since:
- 0.9.30
-
recallSafeConfiguration
public Model recallSafeConfiguration()
Recall the event list previously registered as a safe point.
-
-