ch.qos.logback.core.joran
Class GenericConfigurator

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.joran.GenericConfigurator
All Implemented Interfaces:
ContextAware
Direct Known Subclasses:
JoranConfiguratorBase, SiftingJoranConfiguratorBase, SimpleConfigurator

public abstract class GenericConfigurator
extends ContextAwareBase


Field Summary
protected  Interpreter interpreter
           
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
GenericConfigurator()
           
 
Method Summary
protected  void addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)
           
protected abstract  void addImplicitRules(Interpreter interpreter)
           
protected abstract  void addInstanceRules(RuleStore rs)
           
protected  void buildInterpreter()
           
 void doConfigure(File file)
           
 void doConfigure(InputSource inputSource)
           
 void doConfigure(InputStream inputStream)
           
 void doConfigure(List<SaxEvent> eventList)
           
 void doConfigure(String filename)
           
 void doConfigure(URL url)
           
static void informContextOfURLUsedForConfiguration(Context context, URL url)
           
protected  Pattern initialPattern()
           
 List<SaxEvent> recallSafeConfiguration()
          Recall the event list previously registered as a safe point.
 void registerSafeConfiguration()
          Register the current event list in currently in the interpreter as a safe configuration point.
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interpreter

protected Interpreter interpreter
Constructor Detail

GenericConfigurator

public GenericConfigurator()
Method Detail

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

public static void informContextOfURLUsedForConfiguration(Context context,
                                                          URL url)

doConfigure

public final void doConfigure(InputStream inputStream)
                       throws JoranException
Throws:
JoranException

addInstanceRules

protected abstract void addInstanceRules(RuleStore rs)

addImplicitRules

protected abstract void addImplicitRules(Interpreter interpreter)

addDefaultNestedComponentRegistryRules

protected void addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)

initialPattern

protected Pattern initialPattern()

buildInterpreter

protected void buildInterpreter()

doConfigure

public final void doConfigure(InputSource inputSource)
                       throws JoranException
Throws:
JoranException

doConfigure

public void doConfigure(List<SaxEvent> eventList)
                 throws JoranException
Throws:
JoranException

registerSafeConfiguration

public void registerSafeConfiguration()
Register the current event list in currently in the interpreter as a safe configuration point.

Since:
0.9.30

recallSafeConfiguration

public List<SaxEvent> recallSafeConfiguration()
Recall the event list previously registered as a safe point.



Copyright © 2005-2013 QOS.ch. All Rights Reserved.