org.castor.transactionmanager
public final class TransactionManagerRegistry extends Object
Since: 1.0
Version: $Revision: 5951 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Constructor Summary | |
---|---|
TransactionManagerRegistry(Configuration config)
Construct an instance of TransactionManagerRegistry that uses given
LocalConfiguration to get required configuration properties.
|
Method Summary | |
---|---|
void | deregisterTransactionManager(String managerName)
Deregister TransactionManager with given name.
|
TransactionManager | getTransactionManager(String managerName)
Get the TransactionManager with given name.
|
String[] | getTransactionManagerNames()
Returns the names of all the registered TransactionManager's.
|
void | registerTransactionManager(String managerName, String factoryName, Properties properties)
Register TransactionManager with given name. |
void | registerTransactionManager(String managerName, TransactionManager managerInstance)
Register given TransactionManager with given name.
|
Parameters: config The LocalConfiguration.
Parameters: managerName The name of the TransactionManager to deregister.
Parameters: managerName The name of the TransactionManager to return.
Returns: The TransactionManager.
Throws: TransactionManagerAcquireException If a TransactionManager with name has not been registered or if any failure occured at initialization of the TransactionManager.
Returns: Names of TransactionManager's.
Parameters: managerName The name of the TransactionManager to register. factoryName The name of the TransactionManagerFactory used to get the factory from TransactionManagerFactoryRegistry. properties The properties passed to the TransactionManager at initialization.
Throws: TransactionManagerAcquireException If a TransactionManager with the same name has already been registered or if any failure occured at initialization of the TransactionManager.
Parameters: managerName The name of the TransactionManager to register. managerInstance The TransactionManager instance.
Throws: TransactionManagerAcquireException If a TransactionManager with the same name has already been registered.