org.apache.avalon.excalibur.logger
Class DefaultLogTargetFactoryManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.logger.DefaultLogTargetFactoryManager
All Implemented Interfaces:
Configurable, Contextualizable, LogEnabled, LogTargetFactoryManager

public class DefaultLogTargetFactoryManager
extends AbstractLogEnabled
implements LogTargetFactoryManager, Contextualizable, Configurable

Default LogTargetFactoryManager implementation. It populates the LogTargetFactoryManager from a configuration file.

Since:
4.0
Version:
CVS $Revision: 1.15 $ $Date: 2004/03/10 13:54:50 $
Author:
Avalon Development Team

Constructor Summary
DefaultLogTargetFactoryManager()
           
 
Method Summary
 void configure(Configuration configuration)
          Reads a configuration object and creates the category mapping.
 void contextualize(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
 

Constructor Detail

DefaultLogTargetFactoryManager

public DefaultLogTargetFactoryManager()
Method Detail

getLogTargetFactory

public final LogTargetFactory getLogTargetFactory(java.lang.String factoryName)
Retrieves a LogTargetFactory from a name. Usually the factory name refers to a element name. If this LogTargetFactoryManager does not have the match a null will be returned.

Specified by:
getLogTargetFactory in interface LogTargetFactoryManager
Parameters:
factoryName - The name of a configured LogTargetFactory.
Returns:
the LogTargetFactory or null if none is found.

contextualize

public final void contextualize(Context context)
Reads a context object.

Specified by:
contextualize in interface Contextualizable
Parameters:
context - The context object.

configure

public final void configure(Configuration configuration)
                     throws ConfigurationException
Reads a configuration object and creates the category mapping.

Specified by:
configure in interface Configurable
Parameters:
configuration - The configuration object.
Throws:
ConfigurationException - if the configuration is malformed


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.