|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.xml.DOMConfigurator
org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator
public class Log4JConfigurator
This is a configurator for log4j that supports variable substitution from the settings object.
Field Summary | |
---|---|
protected 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 interface org.apache.log4j.spi.Configurator |
---|
INHERITED, NULL |
Constructor Summary | |
---|---|
Log4JConfigurator()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
This method is called after the instance is setup and before it is used. |
void |
setResource(Resource r)
Set the configuration resource. |
void |
setSettings(org.apache.cocoon.configuration.Settings s)
Inject the settings object. |
protected String |
subst(String value)
Substitute variables in the string value. |
Methods inherited from class org.apache.log4j.xml.DOMConfigurator |
---|
configure, configure, configure, configureAndWatch, configureAndWatch, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, findAppenderByName, findAppenderByReference, parse, parseAppender, parseCategory, parseCategoryFactory, parseChildrenOfLoggerElement, parseErrorHandler, parseFilters, parseLayout, parseLevel, parseRenderer, parseRoot, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.cocoon.configuration.Settings settings
protected Resource resource
Constructor Detail |
---|
public Log4JConfigurator()
Method Detail |
---|
public void setSettings(org.apache.cocoon.configuration.Settings s)
s
- The settings bean.public void setResource(Resource r)
r
- The resource.public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
- If anything during configuration goes wrong an exception is thrown.InitializingBean.afterPropertiesSet()
protected String subst(String value)
subst
in class DOMConfigurator
value
- The value which might contain variable references.
DOMConfigurator.subst(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |