org.apache.avalon.logging.logkit
Class DefaultLoggingFactory

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

public class DefaultLoggingFactory
extends Object
implements LoggingFactory

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


Constructor Summary
DefaultLoggingFactory(InitialContext context, ClassLoader classloader)
          Creation of a new default factory.
 
Method Summary
 Object create()
          Creation of a new kernel using the default criteria.
 Object create(Map map)
          Creation of a new logging manager using the supplied criteria.
 Map createDefaultCriteria()
          Return of map containing the default parameters.
 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

DefaultLoggingFactory

public DefaultLoggingFactory(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 of map containing the default parameters.

Specified by:
createDefaultCriteria in interface Factory
Returns:
the default parameters

create

public Object create()
              throws Exception
Creation of a new kernel using the default criteria.

Specified by:
create in interface Factory
Returns:
the kernel instance
Throws:
Exception - if an error occurs during root block establishment

create

public Object create(Map map)
              throws Exception
Creation of a new logging manager using the supplied criteria.

Specified by:
create in interface Factory
Parameters:
map - the parameters
Returns:
the logging manager instance
Throws:
Exception - if an error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.