org.apache.avalon.excalibur.logger.factory
Class AbstractTargetFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
All Implemented Interfaces:
Configurable, Contextualizable, LogEnabled, LogTargetFactory
Direct Known Subclasses:
AsyncLogTargetFactory, ConsoleTargetFactory, DatagramTargetFactory, FileTargetFactory, PriorityFilterTargetFactory, ServletTargetFactory, SMTPTargetFactory, SocketTargetFactory, StreamTargetFactory

public abstract class AbstractTargetFactory
extends AbstractLogEnabled
implements LogTargetFactory, Configurable, Contextualizable

AbstractTargetFactory class. This factory implements basic functionality for LogTargetFactories

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

Field Summary
protected  Configuration m_configuration
          The Configuration object
protected  Context m_context
          The Context object
 
Constructor Summary
AbstractTargetFactory()
           
 
Method Summary
 void configure(Configuration configuration)
          Get the Configuration object
 void contextualize(Context context)
          Get the Context object
 
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
 
Methods inherited from interface org.apache.avalon.excalibur.logger.LogTargetFactory
createTarget
 

Field Detail

m_configuration

protected Configuration m_configuration
The Configuration object


m_context

protected Context m_context
The Context object

Constructor Detail

AbstractTargetFactory

public AbstractTargetFactory()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Get the Configuration object

Specified by:
configure in interface Configurable
Parameters:
configuration - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs

contextualize

public void contextualize(Context context)
                   throws ContextException
Get the Context object

Specified by:
contextualize in interface Contextualizable
Parameters:
context - the context. Must not be null.
Throws:
ContextException - if context is invalid


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