org.jaffa.persistence.engines
Class PersistenceEngineFactory

java.lang.Object
  extended byorg.jaffa.persistence.engines.PersistenceEngineFactory

public class PersistenceEngineFactory
extends Object

A factory class that returns an instance of a Persistence Engine.


Constructor Summary
PersistenceEngineFactory()
           
 
Method Summary
static IPersistenceEngine newInstance()
          Returns an instance of IPersistenceEngine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceEngineFactory

public PersistenceEngineFactory()
Method Detail

newInstance

public static IPersistenceEngine newInstance()
                                      throws EngineInstantiationException
Returns an instance of IPersistenceEngine. It reads the 'framework.persistence.Persistence_Engine' property from the framework.properties file. It then instantiates the class returned by the property.

Returns:
an instance of IPersistenceEngine.
Throws:
EngineInstantiationException - if the property is not defined, or if the class cannot be found, or if the class canot be instantiated.


Copyright © 2002-2004 JAFFA Project.