org.apache.avalon.logging.logkit
Class DefaultLogTargetFactoryBuilder
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 contextclassloader
- the factory classloader
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.