fr.umlv.javaodb
Class PersistenceManagerFactory

java.lang.Object
  extended by fr.umlv.javaodb.PersistenceManagerFactory

public class PersistenceManagerFactory
extends Object

Helper class that provides the default persistent manager singleton. The singleton is obtained by look up using the ServiceLoader mecanism. The persistent service is declared in a file fr.umlv.javaodb.PersistentManager in the services directory of the META-INF directory.

Author:
Remi Forax
See Also:
PersistenceManager

Method Summary
static PersistenceManager getPersistenceManager()
          Returns the first registered persistence manager using the service loader mecanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPersistenceManager

public static PersistenceManager getPersistenceManager()
                                                throws PersistenceException
Returns the first registered persistence manager using the service loader mecanism.

Returns:
the persistence manager.
Throws:
PersistenceException - if no persietence manager is registered.
See Also:
ServiceLoader


2006 - Université de Marne-la-Vallée