org.castor.transactionmanager
Class AbstractTransactionManagerFactory

java.lang.Object
  extended by org.castor.transactionmanager.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.

Since:
1.0
Version:
$Revision: 7085 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
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(java.util.Properties properties)
          Acquires the appropriate javax.transaction.TransactionManager with the given properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.castor.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(java.util.Properties properties)
                                                                 throws TransactionManagerAcquireException
Acquires the appropriate javax.transaction.TransactionManager with the given properties.

Specified by:
getTransactionManager in interface TransactionManagerFactory
Parameters:
properties - The properties passed to the transaction manager.
Returns:
The transaction manager.
Throws:
TransactionManagerAcquireException - If any failure occured when loading the transaction manager.
See Also:
TransactionManagerFactory.getTransactionManager( java.util.Properties)


Copyright © 2011. All Rights Reserved.