Class PersistenceManagerConfig

  extended by de.nava.informa.utils.manager.PersistenceManagerConfig

public final class PersistenceManagerConfig
extends Object

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.

Client application can get instance of persistence manager using getPersistenceManager() method. Single instance of persistence manager is shared.

Aleksey Gureev (

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,
Sets the name of 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()
Returns instance of persistence manager chosen by application.

instance or NULL if manager is not instantiated.

Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.