Package org.castor.transactionmanager
Class AbstractTransactionManagerFactory
java.lang.Object
org.castor.transactionmanager.AbstractTransactionManagerFactory
- All Implemented Interfaces:
TransactionManagerFactory
- Direct Known Subclasses:
WebSphere51TransactionManagerFactory
,WebSphere5TransactionManagerFactory
,WebSphereTransactionManagerFactory
public abstract class AbstractTransactionManagerFactory
extends Object
implements TransactionManagerFactory
An abstract factory for acquiring transactions from this J2EE container.
- Since:
- 1.0
- Version:
- $Revision: 8104 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
- Author:
- Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Get name of the factory class.abstract String
Get name of the factory method.final TransactionManager
getTransactionManager
(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 Details
-
AbstractTransactionManagerFactory
public AbstractTransactionManagerFactory()
-
-
Method Details
-
getFactoryClassName
Get name of the factory class.- Returns:
- Name of the factory class.
-
getFactoryMethodName
Get name of the factory method.- Returns:
- Name of the factory method.
-
getTransactionManager
public final TransactionManager getTransactionManager(Properties properties) throws TransactionManagerAcquireException Acquires the appropriate javax.transaction.TransactionManager with the given properties.- Specified by:
getTransactionManager
in interfaceTransactionManagerFactory
- 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:
-