com.mkdoc.store
Class StoreManagerFactory

java.lang.Object
  |
  +--com.mkdoc.store.StoreManagerFactory

public final class StoreManagerFactory
extends java.lang.Object

A factory for store manager types.

Version:
0.6 2005-11-01
Author:
Philip Shaw

Field Summary
static java.lang.String MANAGER_KEY
          The store manager class property name.
static java.lang.String NULL_ARG
          A null property set error message.
static java.lang.String SUGGESTION
          Help suggestion for exception cases.
 
Method Summary
static FileStoreManager newFileStoreManager(ApplicationContext context)
          Get a StoreManager instance.
static StoreManager newStoreManager(ApplicationContext context)
          Get a StoreManager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_ARG

public static final java.lang.String NULL_ARG
A null property set error message.

Since:
Version 0.1 2005-03-31
See Also:
Constant Field Values

MANAGER_KEY

public static final java.lang.String MANAGER_KEY
The store manager class property name.

Since:
Version 0.1 2005-03-31
See Also:
Constant Field Values

SUGGESTION

public static final java.lang.String SUGGESTION
Help suggestion for exception cases.

Since:
Version 0.1 2005-03-31
See Also:
Constant Field Values
Method Detail

newStoreManager

public static StoreManager newStoreManager(ApplicationContext context)
                                    throws StoreException
Get a StoreManager instance.

Parameters:
context - The application context for the manager.
Returns:
An initialized StoreManager type.
Throws:
StoreException - If the manager class cannot be instantiated for any reason.
Since:
Version 0.1 2005-03-31

newFileStoreManager

public static FileStoreManager newFileStoreManager(ApplicationContext context)
                                            throws StoreException
Get a StoreManager instance.

Parameters:
context - The application context for the manager.
Returns:
An initialized StoreManager type.
Throws:
StoreException - If the manager class cannot be instantiated for any reason.
Since:
Version 0.1 2005-03-31