org.codehaus.spice.loggerstore.factories
Class InitialLoggerStoreFactory

java.lang.Object
  |
  +--org.codehaus.spice.loggerstore.factories.InitialLoggerStoreFactory
All Implemented Interfaces:
LoggerStoreFactory

public class InitialLoggerStoreFactory
extends Object
implements LoggerStoreFactory

This is the initial LoggerStoreFactory tyhat the user accesses to create their LoggerStore when the type is configurable.

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

Field Summary
static String DEFAULT_PROPERTIES
          The name of properties file loaded from ClassLoader.
static String INITIAL_FACTORY
          The INITIAL_FACTORY key.
 
Fields inherited from interface org.codehaus.spice.loggerstore.LoggerStoreFactory
FILE_LOCATION, URL_LOCATION
 
Constructor Summary
InitialLoggerStoreFactory()
           
 
Method Summary
 LoggerStore createLoggerStore(Map config)
          Create LoggerStore by first determining the correct LoggerStoreFactory to use and then delegating to that factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_FACTORY

public static final String INITIAL_FACTORY
The INITIAL_FACTORY key. Used to define the classname of the initial LoggerStoreFactory. If not specified will attempt to use the ConsoleLoggerStoreFactory.

See Also:
Constant Field Values

DEFAULT_PROPERTIES

public static final String DEFAULT_PROPERTIES
The name of properties file loaded from ClassLoader. This property file will be used to load default configuration settings if user failed to specify them.

See Also:
Constant Field Values
Constructor Detail

InitialLoggerStoreFactory

public InitialLoggerStoreFactory()
Method Detail

createLoggerStore

public LoggerStore createLoggerStore(Map config)
                              throws Exception
Create LoggerStore by first determining the correct LoggerStoreFactory to use and then delegating to that factory. See Class Javadocs for the process of locating LoggerStore.

Specified by:
createLoggerStore in interface LoggerStoreFactory
Parameters:
config - the input configuration
Returns:
the LoggerStore
Throws:
Exception - if unable to create the LoggerStore for any reason.


Copyright © 2003 Codehaus. All Rights Reserved.