org.codehaus.spice.loggerstore
Interface LoggerStoreFactory

All Known Implementing Classes:
AbstractLoggerStoreFactory, InitialLoggerStoreFactory

public interface LoggerStoreFactory

LoggerStoreFactory is a factory interface for LoggerStore instances. There is a factory implementation for each specific logger implementation (LogKit, Log4J, JDK14).

The factory also acts a configurator, handling the specific way in which a logger is configured. The LoggerStore is configured via a map of parameters passed in the create method. LoggerStoreFactory defines the keys used to retrieve the elements of the map.

Version:
$Revision: 1.1 $ $Date: 2003/11/19 18:22:44 $
Author:
Mauro Talevi
, Peter Donald

Field Summary
static String FILE_LOCATION
          The URL key.
static String URL_LOCATION
          The URL key.
 
Method Summary
 LoggerStore createLoggerStore(Map config)
          Creates a LoggerStore from a given set of configuration parameters.
 

Field Detail

URL_LOCATION

public static final String URL_LOCATION
The URL key. Used to define the URL where the configuration for LoggerStore can be found.

See Also:
Constant Field Values

FILE_LOCATION

public static final String FILE_LOCATION
The URL key. Used to define the URL where the configuration for LoggerStore can be found.

See Also:
Constant Field Values
Method Detail

createLoggerStore

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

Parameters:
config - the Map of parameters for the configuration of the store
Returns:
the LoggerStore
Throws:
Exception - if unable to create the LoggerStore


Copyright © 2003 Codehaus. All Rights Reserved.