org.jcomponent.loggerstore.factories
Class LogKitLoggerStoreFactory

java.lang.Object
  extended byorg.jcontainer.dna.AbstractLogEnabled
      extended byorg.jcomponent.loggerstore.factories.AbstractLoggerStoreFactory
          extended byorg.jcomponent.loggerstore.factories.LogKitLoggerStoreFactory
All Implemented Interfaces:
LogEnabled, LoggerStoreFactory
Direct Known Subclasses:
ExcaliburLogKitLoggerStoreFactory, SimpleLogKitLoggerStoreFactory

public class LogKitLoggerStoreFactory
extends AbstractLoggerStoreFactory

LogKitLoggerStoreFactory is an implementation of LoggerStoreFactory for the LogKit Logger.

Version:
$Revision: 1.4 $ $Date: 2003/11/10 19:26:10 $
Author:
Mauro Talevi, Peter Donald

Field Summary
static String LOGGER_MANAGER
          The LOGGER_MANAGER key.
 
Fields inherited from interface org.jcomponent.loggerstore.LoggerStoreFactory
FILE_LOCATION, URL_LOCATION
 
Constructor Summary
LogKitLoggerStoreFactory()
           
 
Method Summary
protected  LoggerStore doCreateLoggerStore(Map config)
          Creates a LoggerStore from a given set of configuration parameters.
protected  ClassLoader getClassLoader(Map data)
          Retrieve the classloader from data map.
 
Methods inherited from class org.jcomponent.loggerstore.factories.AbstractLoggerStoreFactory
createLoggerStore, getInputStream, missingConfiguration
 
Methods inherited from class org.jcontainer.dna.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_MANAGER

public static final String LOGGER_MANAGER
The LOGGER_MANAGER key. Used to define the classname of the LoggerManager to use in creating a LogKitLoggerStore when not specified in the configuration map.

See Also:
Constant Field Values
Constructor Detail

LogKitLoggerStoreFactory

public LogKitLoggerStoreFactory()
Method Detail

doCreateLoggerStore

protected LoggerStore doCreateLoggerStore(Map config)
                                   throws Exception
Creates a LoggerStore from a given set of configuration parameters.

Specified by:
doCreateLoggerStore in class AbstractLoggerStoreFactory
Parameters:
config - the Map of parameters for the configuration of the store
Returns:
the LoggerStore
Throws:
Exception - if unable to create the LoggerStore

getClassLoader

protected ClassLoader getClassLoader(Map data)
Retrieve the classloader from data map. If no classloader is specified then use ContextClassLoader. If ContextClassLoader not specified then use ClassLoader that loaded this class.

Parameters:
data - the configuration data
Returns:
a ClassLoader


Copyright © 2003 The Spice Group. All Rights Reserved.