org.exolab.castor.jdo.transactionmanager.spi
Class AbstractTransactionManagerFactory

java.lang.Object
  extended by org.exolab.castor.jdo.transactionmanager.spi.AbstractTransactionManagerFactory
All Implemented Interfaces:
TransactionManagerFactory
Direct Known Subclasses:
WebSphere51TransactionManagerFactory, WebSphere5TransactionManagerFactory, WebSphereTransactionManagerFactory

public abstract class AbstractTransactionManagerFactory
extends java.lang.Object
implements TransactionManagerFactory

An abstract factory for acquiring transactions from this J2EE container.

Version:
$Revision: 1.1 $ $Date: 2005/08/17 13:37:06 $
Author:
Ralf Joachim

Constructor Summary
AbstractTransactionManagerFactory()
           
 
Method Summary
abstract  java.lang.String getFactoryClassName()
          Get name of the factory class.
abstract  java.lang.String getFactoryMethodName()
          Get name of the factory method.
 javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
          Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exolab.castor.jdo.transactionmanager.TransactionManagerFactory
getName
 

Constructor Detail

AbstractTransactionManagerFactory

public AbstractTransactionManagerFactory()
Method Detail

getFactoryClassName

public abstract java.lang.String getFactoryClassName()
Get name of the factory class.

Returns:
Name of the factory class.

getFactoryMethodName

public abstract java.lang.String getFactoryMethodName()
Get name of the factory method.

Returns:
Name of the factory method.

getTransactionManager

public final javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
                                                                 throws TransactionManagerAcquireException
Description copied from interface: TransactionManagerFactory
Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.

Specified by:
getTransactionManager in interface TransactionManagerFactory
Parameters:
jdoConf - The jdo configuration holding the parameters to set on the transaction manager.
Returns:
The transaction manager.
Throws:
TransactionManagerAcquireException - If any failure occures when loading the transaction manager.
See Also:
#getTransactionManager(org.exolab.castor.jdo.conf.JdoConf)


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