Package org.castor.transactionmanager
Class TransactionManagerFactoryRegistry
java.lang.Object
org.castor.transactionmanager.TransactionManagerFactoryRegistry
Registry for
TransactionManagerFactory implementations obtained from the
Castor properties file and used by the JDO configuration file.- Since:
- 1.0
- Version:
- $Revision: 8104 $ $Date: 2006-04-08 08:58:10 -0600 (Sat, 08 Apr 2006) $
- Author:
- Bruce Snyder, Werner Guttmann, Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionManagerFactoryRegistry(AbstractProperties properties) Construct an instance of TransactionManagerFactoryRegistry that loads theTransactionManagerFactoryimplementations specified in the given properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns aTransactionManagerFactorywith the specified name.String[]Returns the names of all the configuredTransactionManagerFactoryimplementations.
-
Constructor Details
-
TransactionManagerFactoryRegistry
Construct an instance of TransactionManagerFactoryRegistry that loads theTransactionManagerFactoryimplementations specified in the given properties.- Parameters:
properties- The properties.
-
-
Method Details
-
getTransactionManagerFactoryNames
Returns the names of all the configuredTransactionManagerFactoryimplementations. ATransactionManagerFactoryinstance can be obtained by thegetTransactionManagerFactory(java.lang.String)method.- Returns:
- Names of
TransactionManagerFactoryimplementations
-
getTransactionManagerFactory
public TransactionManagerFactory getTransactionManagerFactory(String name) throws TransactionManagerAcquireException Returns aTransactionManagerFactorywith the specified name. Returns null if the named factory is not supported.- Parameters:
name- The name of the TransactionManagerFactory.- Returns:
- The
TransactionManagerFactoryor null if none exists. - Throws:
TransactionManagerAcquireException- If TransactoinManagerFactory with given name could not be found.
-