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 java.lang.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 Constructor Description AbstractTransactionManagerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 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:
TransactionManagerFactory.getTransactionManager( java.util.Properties)
-
-