public final class TransactionManagerRegistry
extends java.lang.Object
TransactionManager instances obtained by their name.| Constructor | Description |
|---|---|
TransactionManagerRegistry(AbstractProperties properties) |
Construct an instance of TransactionManagerRegistry that uses given
LocalConfiguration to get required configuration properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
deregisterTransactionManager(java.lang.String managerName) |
Deregister TransactionManager with given name.
|
javax.transaction.TransactionManager |
getTransactionManager(java.lang.String managerName) |
Get the TransactionManager with given name.
|
java.lang.String[] |
getTransactionManagerNames() |
Returns the names of all the registered
TransactionManager's. |
void |
registerTransactionManager(java.lang.String managerName,
java.lang.String factoryName,
java.util.Properties properties) |
Register TransactionManager with given name.
|
void |
registerTransactionManager(java.lang.String managerName,
javax.transaction.TransactionManager managerInstance) |
Register given TransactionManager with given name.
|
public TransactionManagerRegistry(AbstractProperties properties)
properties - The properties.public void registerTransactionManager(java.lang.String managerName,
java.lang.String factoryName,
java.util.Properties properties)
throws TransactionManagerAcquireException
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.TransactionManagerAcquireException - If a TransactionManager with the
same name has already been registered or if any failure occured at
initialization of the TransactionManager.public void registerTransactionManager(java.lang.String managerName,
javax.transaction.TransactionManager managerInstance)
throws TransactionManagerAcquireException
managerName - The name of the TransactionManager to register.managerInstance - The TransactionManager instance.TransactionManagerAcquireException - If a TransactionManager with the
same name has already been registered.public void deregisterTransactionManager(java.lang.String managerName)
managerName - The name of the TransactionManager to deregister.public java.lang.String[] getTransactionManagerNames()
TransactionManager's.TransactionManager's.public javax.transaction.TransactionManager getTransactionManager(java.lang.String managerName)
throws TransactionManagerAcquireException
managerName - The name of the TransactionManager to return.TransactionManagerAcquireException - If a TransactionManager with name
has not been registered or if any failure occured at initialization
of the TransactionManager.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com