|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.manager.PersistenceManagerConfig
public final class PersistenceManagerConfig
Persistence manager configuration class. At application start it reads the value of
JVM property informa.persistencemanager
and
instantiates class with given name as persistence manager. Class, mentioned in property
should implement PersistenceManagerIF
interface.
getPersistenceManager()
method. Single instance of persistence manager
is shared.
Method Summary | |
---|---|
static PersistenceManagerIF |
getPersistenceManager()
Returns instance of persistence manager chosen by application. |
static void |
setPersistenceManagerClassName(String className)
Sets the name of PersistenceManagerIF interface implementation class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setPersistenceManagerClassName(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException
PersistenceManagerIF
interface implementation class.
If class is successfully located instance can be taken with
getPersistenceManager()
method.
className
- name of implemenation class.
ClassNotFoundException
- if class not found.
IllegalAccessException
- if the class or its nullary constructor is not accessible.
InstantiationException
- if this Class represents an abstract class, an interface,
an array class, a primitive type, or void;
or if the class has no nullary constructor;
or if the instantiation fails for some other reason.public static PersistenceManagerIF getPersistenceManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |