Package org.castor.transactionmanager
Class LocalTransactionManagerFactory
java.lang.Object
org.castor.transactionmanager.LocalTransactionManagerFactory
- All Implemented Interfaces:
TransactionManagerFactory
public final class LocalTransactionManagerFactory
extends Object
implements TransactionManagerFactory
Default transaction manager when Castor is used in standalone mode,
in other words not within a J2EE container.
- Version:
- $Revision: 6907 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $ since 1.0
- Author:
- Bruce Snyder, Werner Guttmann, Ralf Joachim
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransactionManager
The dummy transaction manager that always will be returned.static final String
The name of the factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the short alias for this factory instance.getTransactionManager
(Properties properties) Acquires the appropriate javax.transaction.TransactionManager with the given properties.
-
Field Details
-
NAME
The name of the factory.- See Also:
-
MANAGER
The dummy transaction manager that always will be returned.
-
-
Constructor Details
-
LocalTransactionManagerFactory
public LocalTransactionManagerFactory()
-
-
Method Details
-
getName
Returns the short alias for this factory instance.- Specified by:
getName
in interfaceTransactionManagerFactory
- Returns:
- The short alias name.
- See Also:
-
getTransactionManager
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.
- See Also:
-