org.exolab.castor.jdo.transactionmanager
Class TransactionManagerRegistry

java.lang.Object
  extended by org.exolab.castor.jdo.transactionmanager.TransactionManagerRegistry

public final class TransactionManagerRegistry
extends java.lang.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 javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
          Get TransactionManager for the given configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTransactionManager

public static javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
                                                                  throws MappingException
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