org.exolab.castor.jdo.transactionmanager

Class TransactionManagerRegistry

public final class TransactionManagerRegistry extends Object

Registry for TransactionManager implementations obtained by the configuartion they are specified in.

Version: $Revision: 1.5 $ $Date: 2005/09/19 06:59:54 $

Author: Ralf Joachim

Method Summary
static TransactionManagergetTransactionManager(JdoConf jdoConf)
Get TransactionManager for the given configuration.

Method Detail

getTransactionManager

public static TransactionManager getTransactionManager(JdoConf jdoConf)
Get TransactionManager for the given configuration. If we previously created a TransactionManager for the same configuration instance we need to return the same TransactionManager instance. Therefore this method needs to be synchronized and we need to use a IdentityMap.

Parameters: jdoConf The configuration we need a TransactionManager for.

Returns: The TransactionManager.

Throws: MappingException If any failure occures at creation of TransactionManager.

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