|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.DataFactoryManager
public class DataFactoryManager
Class responsible for instantiation of data factories. This class determines what data factory should be used based on currently used persistence mechanism, creates the factory instance if it wasn't created yet and caches created instances. This of course assumes that the data factories are implemented to be stateless and reentrant.
| Field Summary | |
|---|---|
protected ClassFactory |
m_factoryClassFactory
Class factory used to instantiate data factorys. |
| Constructor Summary | |
|---|---|
DataFactoryManager()
Default constructor. |
|
| Method Summary | |
|---|---|
DataFactory |
getFactoryInstance(java.lang.Class dataFactory)
Method to create actual factory based on specified class. |
static DataFactory |
getInstance(java.lang.Class dataFactory)
Create data factory for specified class. |
static DataFactoryManager |
getManagerInstance()
Get the default instance. |
static void |
setManagerInstance(DataFactoryManager defaultInstance)
Set default instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassFactory m_factoryClassFactory
| Constructor Detail |
|---|
public DataFactoryManager()
| Method Detail |
|---|
public static DataFactory getInstance(java.lang.Class dataFactory)
throws OSSException
dataFactory - - the data factory interface for which we want
applicable factory. This is usually persistence
independent class and we will try to create
dependent class, such as one which can persist
data in database.
OSSException - - an error has occured
public static DataFactoryManager getManagerInstance()
throws OSSException
OSSException - - cannot get current databasepublic static void setManagerInstance(DataFactoryManager defaultInstance)
defaultInstance - - new default instancegetInstance(java.lang.Class)
public DataFactory getFactoryInstance(java.lang.Class dataFactory)
throws OSSException
dataFactory - - the data factory interface for which we want
applicable factory. This is usually persistence
independent class and we will try to create
dependent class, such as one which can persist
data in database.
OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||