public abstract class GenericConfigurator extends ContextAwareBase
| Modifier and Type | Field and Description |
|---|---|
protected Interpreter |
interpreter |
context| Constructor and Description |
|---|
GenericConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry) |
protected abstract void |
addImplicitRules(Interpreter interpreter) |
protected abstract void |
addInstanceRules(RuleStore rs) |
protected void |
buildInterpreter()
Builds a generic configuration-XML interpreter
|
void |
doConfigure(File file)
Configures logback with the configuration XML read from a given file
|
void |
doConfigure(InputStream inputStream)
Configures logback with the configuraiton XML read from an input stream,
and then closes the stream
|
void |
doConfigure(List<SaxEvent> eventList)
Configures logback with SAX events of configuration XML
|
void |
doConfigure(String filename)
Configures logback with the configuration XML read from a file,
located at the given path on the host filesystem
|
void |
doConfigure(URL url)
Configures logback with the configuration XML read from a file,
located at the given URL
|
static void |
informContextOfURLUsedForConfiguration(Context context,
URL url)
Adds the URL of the used configuration file to the watch list, which is
periodically scanned for changes when the "scan" flag is set in logback.xml
(
<configuration scan="true" ...>). |
protected ElementPath |
initialElementPath() |
List<SaxEvent> |
recallSafeConfiguration()
Recall the event list previously registered as a safe point.
|
void |
registerSafeConfiguration()
Register the current event list in the interpreter as a safe
configuration point.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprotected Interpreter interpreter
public final void doConfigure(URL url) throws JoranException
url - URL to the file, containing the configuration XMLJoranException - configuration error occurredpublic final void doConfigure(String filename) throws JoranException
filename - path to the file, containing the configuration XMLJoranException - configuration error occurredpublic final void doConfigure(File file) throws JoranException
file - the file, containing the configuration XMLJoranException - configuration error occurredpublic static void informContextOfURLUsedForConfiguration(Context context, URL url)
<configuration scan="true" ...>).context - the logger context to modifyurl - the URL to addpublic final void doConfigure(InputStream inputStream) throws JoranException
inputStream - stream to contents of configuration XMLJoranException - configuration error occurredprotected abstract void addInstanceRules(RuleStore rs)
protected abstract void addImplicitRules(Interpreter interpreter)
protected void addDefaultNestedComponentRegistryRules(DefaultNestedComponentRegistry registry)
protected ElementPath initialElementPath()
protected void buildInterpreter()
public void doConfigure(List<SaxEvent> eventList) throws JoranException
eventList - list of SAX eventsJoranException - configuration error occurredpublic void registerSafeConfiguration()
Copyright © 2005–2014 QOS.ch. All rights reserved.