org.exolab.castor.persist

Class PersistenceEngineFactory

public final class PersistenceEngineFactory extends 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

Method Summary
LockEnginecreateEngine(ConnectionFactory connectionFactory, MappingResolver mapResolver, PersistenceFactory persistenceFactory)
Creates and returns a new persistence engine.

Method Detail

createEngine

public LockEngine createEngine(ConnectionFactory connectionFactory, MappingResolver mapResolver, PersistenceFactory persistenceFactory)
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