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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, LogTargetFactory
Direct Known Subclasses:
AsyncLogTargetFactory, DatagramTargetFactory, FileTargetFactory, PriorityFilterTargetFactory, ServletTargetFactory, SocketTargetFactory, StreamTargetFactory

public abstract class AbstractTargetFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements LogTargetFactory, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable

AbstractTargetFactory class. This factory implements basic functionality for LogTargetFactories

Since:
4.0
Version:
CVS $Revision: 1.3 $ $Date: 2001/12/11 09:53:30 $
Author:
Giacomo Pati

Field Summary
protected  org.apache.avalon.framework.configuration.Configuration m_configuration
          The Configuration object
protected  org.apache.avalon.framework.context.Context m_context
          The Context object
 
Constructor Summary
AbstractTargetFactory()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Get the Configuration object
 void contextualize(org.apache.avalon.framework.context.Context context)
          Get the Context object
abstract  org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
          Create a LogTarget based on a Configuration
 
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

m_configuration

protected org.apache.avalon.framework.configuration.Configuration m_configuration
The Configuration object

m_context

protected org.apache.avalon.framework.context.Context m_context
The Context object
Constructor Detail

AbstractTargetFactory

public AbstractTargetFactory()
Method Detail

createTarget

public abstract org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
                                               throws org.apache.avalon.framework.configuration.ConfigurationException
Description copied from interface: LogTargetFactory
Create a LogTarget based on a Configuration
Specified by:
createTarget in interface LogTargetFactory

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Get the Configuration object
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Get the Context object
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.