org.apache.avalon.logging.logkit.factory
Class PluginTargetFactory

java.lang.Object
  extended byorg.apache.avalon.logging.logkit.factory.PluginTargetFactory
All Implemented Interfaces:
LogTargetFactory

public class PluginTargetFactory
extends Object
implements LogTargetFactory

A log target factory that establishes log targets based on a artifact reference.

Version:
$Revision: 1.3 $ $Date: 2004/03/08 11:32:01 $
Author:
Avalon Development Team

Constructor Summary
PluginTargetFactory(ClassLoader classloader, InitialContext context, LogTargetFactoryBuilder builder)
           
 
Method Summary
 LogTarget createTarget(Configuration config)
          Create a LogTarget based on a supplied configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginTargetFactory

public PluginTargetFactory(ClassLoader classloader,
                           InitialContext context,
                           LogTargetFactoryBuilder builder)
Method Detail

createTarget

public LogTarget createTarget(Configuration config)
                       throws LogTargetException
Create a LogTarget based on a supplied configuration

Specified by:
createTarget in interface LogTargetFactory
Parameters:
config - the target coonfiguration
Returns:
the log target
Throws:
LogTargetException


Copyright © The Apache Software Foundation. All Rights Reserved.