org.exolab.castor.persist
Class PersistenceEngineFactory

java.lang.Object
  extended by org.exolab.castor.persist.PersistenceEngineFactory

public final class PersistenceEngineFactory
extends java.lang.Object

Factory for constructing new persistence engines. Used by the APIs to obtain a new persistence engine using an SPI factory and mapping resolver. The returned object implements the LockEngine interface.

Version:
$Revision: 1.4 $ $Date: 2005/07/24 17:48:19 $
Author:
Assaf Arkin, Bruce Snyder

Constructor Summary
PersistenceEngineFactory()
           
 
Method Summary
 LockEngine createEngine(ConnectionFactory connectionFactory, MappingResolver mapResolver, PersistenceFactory persistenceFactory)
          Creates and returns a new persistence engine.
 
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

createEngine

public LockEngine createEngine(ConnectionFactory connectionFactory,
                               MappingResolver mapResolver,
                               PersistenceFactory persistenceFactory)
                        throws MappingException
Creates and returns a new persistence engine.

Parameters:
mapResolver - All the descriptors supported by this engine
factory - Persistence SPI factory
Throws:
MappingException - The SPI factory could not support one of object types due to a mapping errot


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com