org.apache.cocoon.spring.configurator.logback
Class LogbackConfigurator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.GenericConfigurator
ch.qos.logback.core.joran.JoranConfiguratorBase
ch.qos.logback.classic.joran.JoranConfigurator
org.apache.cocoon.spring.configurator.logback.LogbackConfigurator
- All Implemented Interfaces:
- ch.qos.logback.core.spi.ContextAware, org.springframework.beans.factory.InitializingBean
public class LogbackConfigurator
- extends ch.qos.logback.classic.joran.JoranConfigurator
- implements org.springframework.beans.factory.InitializingBean
Field Summary |
protected org.springframework.core.io.Resource |
resource
The configuration resources. |
protected org.apache.cocoon.configuration.Settings |
settings
The settings object that is used to substitute variable values. |
Fields inherited from class ch.qos.logback.core.joran.GenericConfigurator |
interpreter |
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
context |
Method Summary |
void |
afterPropertiesSet()
This method is called after the instance is setup and before it is used. |
void |
setResource(org.springframework.core.io.Resource resource)
Set the configuration resource. |
void |
setSettings(org.apache.cocoon.configuration.Settings settings)
Inject the settings object. |
Methods inherited from class ch.qos.logback.classic.joran.JoranConfigurator |
addDefaultNestedComponentRegistryRules, addInstanceRules |
Methods inherited from class ch.qos.logback.core.joran.JoranConfiguratorBase |
addImplicitRules, buildInterpreter, getErrorList, getExecutionContext |
Methods inherited from class ch.qos.logback.core.joran.GenericConfigurator |
doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, informContextOfURLUsedForConfiguration, initialPattern, recallSafeConfiguration, registerSafeConfiguration |
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 |
settings
protected org.apache.cocoon.configuration.Settings settings
- The settings object that is used to substitute variable values.
resource
protected org.springframework.core.io.Resource resource
- The configuration resources.
LogbackConfigurator
public LogbackConfigurator()
setSettings
public void setSettings(org.apache.cocoon.configuration.Settings settings)
- Inject the settings object.
- Parameters:
settings
- The settings bean.
setResource
public void setResource(org.springframework.core.io.Resource resource)
- Set the configuration resource.
- Parameters:
resource
- The resource.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- This method is called after the instance is setup and before it is used.
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
- If anything during configuration goes wrong an exception
is thrown.- See Also:
InitializingBean.afterPropertiesSet()
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.