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 theTransactionManagerFactory
implementations specified in the given properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns aTransactionManagerFactory
with the specified name.String[]
Returns the names of all the configuredTransactionManagerFactory
implementations.
-
Constructor Details
-
TransactionManagerFactoryRegistry
Construct an instance of TransactionManagerFactoryRegistry that loads theTransactionManagerFactory
implementations specified in the given properties.- Parameters:
properties
- The properties.
-
-
Method Details
-
getTransactionManagerFactoryNames
Returns the names of all the configuredTransactionManagerFactory
implementations. ATransactionManagerFactory
instance can be obtained by thegetTransactionManagerFactory(java.lang.String)
method.- Returns:
- Names of
TransactionManagerFactory
implementations
-
getTransactionManagerFactory
public TransactionManagerFactory getTransactionManagerFactory(String name) throws TransactionManagerAcquireException Returns aTransactionManagerFactory
with the specified name. Returns null if the named factory is not supported.- Parameters:
name
- The name of the TransactionManagerFactory.- Returns:
- The
TransactionManagerFactory
or null if none exists. - Throws:
TransactionManagerAcquireException
- If TransactoinManagerFactory with given name could not be found.
-