org.apache.avalon.logging.logkit
Interface LogTargetFactoryBuilder

All Known Implementing Classes:
DefaultLogTargetFactoryBuilder

public interface LogTargetFactoryBuilder

A LogTargetFactoryBuilder provides support for the establishment of new logging targets.

Version:
$Revision: 1.3 $ $Date: 2004/03/17 10:50:04 $
Author:
Avalon Development Team

Method Summary
 LogTargetFactory buildLogTargetFactory(Class clazz)
          Build a log target factory using a supplied class.
 

Method Detail

buildLogTargetFactory

public LogTargetFactory buildLogTargetFactory(Class clazz)
                                       throws LoggingException
Build a log target factory using a supplied class. The implementation checks the first available constructor arguments and builds a set of arguments based on the arguments supplied to this builder instance.

Parameters:
clazz - the log target factory class
Returns:
a instance of the class
Throws:
LoggingException - if the class does not expose a public constructor, or the constructor requires arguments that the builder cannot resolve, or if a unexpected instantiation error ooccurs


Copyright © The Apache Software Foundation. All Rights Reserved.