org.apache.avalon.logging.log4j
Class Log4JLoggingFactory

java.lang.Object
  extended byorg.apache.avalon.logging.log4j.Log4JLoggingFactory
All Implemented Interfaces:
Factory, LoggingFactory

public class Log4JLoggingFactory
extends Object
implements LoggingFactory

A Log4J factory.

Version:
$Revision: 1.10 $
Author:
Avalon Development Team

Constructor Summary
Log4JLoggingFactory(InitialContext context, ClassLoader classloader)
          Creation of a new default factory.
 
Method Summary
 Object create()
          Create a new instance of an application.
 Object create(Map criteriaMap)
          Create a new instance of an application.
 Map createDefaultCriteria()
          Return a new instance of default criteria for the factory.
 LoggingCriteria createDefaultLoggingCriteria()
          Return of map containing the default parameters.
 LoggingManager createLoggingManager(LoggingCriteria criteria)
          Create a new LoggingManager using the supplied logging criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLoggingFactory

public Log4JLoggingFactory(InitialContext context,
                           ClassLoader classloader)
Creation of a new default factory.

Parameters:
context - the repository inital context
classloader - the factory classloader
Method Detail

createDefaultLoggingCriteria

public LoggingCriteria createDefaultLoggingCriteria()
Return of map containing the default parameters.

Specified by:
createDefaultLoggingCriteria in interface LoggingFactory
Returns:
the default parameters

createLoggingManager

public LoggingManager createLoggingManager(LoggingCriteria criteria)
                                    throws LoggingException
Create a new LoggingManager using the supplied logging criteria.

Specified by:
createLoggingManager in interface LoggingFactory
Parameters:
criteria - the logging system factory criteria
Throws:
LoggingException - is a logging system creation error occurs

createDefaultCriteria

public Map createDefaultCriteria()
Return a new instance of default criteria for the factory.

Specified by:
createDefaultCriteria in interface Factory
Returns:
a new criteria instance

create

public Object create()
              throws Exception
Create a new instance of an application.

Specified by:
create in interface Factory
Returns:
the application instance
Throws:
Exception

create

public Object create(Map criteriaMap)
              throws Exception
Create a new instance of an application.

Specified by:
create in interface Factory
Parameters:
criteriaMap - the creation criteria
Returns:
the application instance
Throws:
Exception


Copyright © The Apache Software Foundation. All Rights Reserved.