|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager
public class DefaultLogTargetFactoryManager
Default LogTargetFactoryManager implementation. It populates the LogTargetFactoryManager from a configuration file.
Field Summary | |
---|---|
private java.lang.ClassLoader |
m_classLoader
The classloader to use to load target factorys. |
private org.apache.avalon.framework.context.Context |
m_context
The context object |
private java.util.Map |
m_factories
Map for name to logger mapping |
Constructor Summary | |
---|---|
DefaultLogTargetFactoryManager()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Reads a configuration object and creates the category mapping. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Reads a context object. |
LogTargetFactory |
getLogTargetFactory(java.lang.String factoryName)
Retrieves a LogTargetFactory from a name. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map m_factories
private org.apache.avalon.framework.context.Context m_context
private java.lang.ClassLoader m_classLoader
Constructor Detail |
---|
public DefaultLogTargetFactoryManager()
Method Detail |
---|
public final LogTargetFactory getLogTargetFactory(java.lang.String factoryName)
getLogTargetFactory
in interface LogTargetFactoryManager
factoryName
- The name of a configured LogTargetFactory.
public final void contextualize(org.apache.avalon.framework.context.Context context)
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
context
- The context object.public final void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configuration
- The configuration object.
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |