public class DefaultLogTargetFactoryManager extends org.apache.avalon.framework.logger.AbstractLogEnabled implements LogTargetFactoryManager, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DefaultLogTargetFactoryManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private final java.util.Map m_factories
private org.apache.avalon.framework.context.Context m_context
private java.lang.ClassLoader m_classLoader
public final LogTargetFactory getLogTargetFactory(java.lang.String factoryName)
getLogTargetFactory in interface LogTargetFactoryManagerfactoryName - 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.Contextualizablecontext - 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.Configurableconfiguration - The configuration object.org.apache.avalon.framework.configuration.ConfigurationException - if the configuration is malformed