org.apache.avalon.logging.logkit
Class DefaultLogTargetFactoryBuilder

java.lang.Object
  extended byorg.apache.avalon.logging.logkit.DefaultLogTargetFactoryBuilder
All Implemented Interfaces:
LogTargetFactoryBuilder

public class DefaultLogTargetFactoryBuilder
extends Object
implements LogTargetFactoryBuilder

The DefaultLoggingFactory provides support for the establishment of a new logging system using LogKit as the implementation.


Constructor Summary
DefaultLogTargetFactoryBuilder(InitialContext context, ClassLoader classloader, Logger logger, File basedir, LogTargetFactoryManager factories, LogTargetManager targets)
          Creation of a new default factory.
 
Method Summary
 LogTargetFactory buildLogTargetFactory(Class clazz)
          Build a log target factory using a supplied class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogTargetFactoryBuilder

public DefaultLogTargetFactoryBuilder(InitialContext context,
                                      ClassLoader classloader,
                                      Logger logger,
                                      File basedir,
                                      LogTargetFactoryManager factories,
                                      LogTargetManager targets)
Creation of a new default factory.

Parameters:
context - the repository inital context
classloader - the factory classloader
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.

Specified by:
buildLogTargetFactory in interface LogTargetFactoryBuilder
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.