public final class TransactionManagerFactoryRegistry extends Object
TransactionManagerFactory
implementations obtained from the
Castor properties file and used by the JDO configuration file.Constructor and Description |
---|
TransactionManagerFactoryRegistry(AbstractProperties properties)
Construct an instance of TransactionManagerFactoryRegistry that loads the
TransactionManagerFactory implementations specified in the given
properties. |
Modifier and Type | Method and Description |
---|---|
TransactionManagerFactory |
getTransactionManagerFactory(String name)
Returns a
TransactionManagerFactory with the specified name. |
String[] |
getTransactionManagerFactoryNames()
Returns the names of all the configured
TransactionManagerFactory
implementations. |
public TransactionManagerFactoryRegistry(AbstractProperties properties)
TransactionManagerFactory
implementations specified in the given
properties.properties
- The properties.public String[] getTransactionManagerFactoryNames()
TransactionManagerFactory
implementations. A TransactionManagerFactory
instance can be obtained
by the getTransactionManagerFactory(java.lang.String)
method.TransactionManagerFactory
implementationspublic TransactionManagerFactory getTransactionManagerFactory(String name) throws TransactionManagerAcquireException
TransactionManagerFactory
with the specified name. Returns
null if the named factory is not supported.name
- The name of the TransactionManagerFactory.TransactionManagerFactory
or null if none exists.TransactionManagerAcquireException
- If TransactoinManagerFactory
with given name could not be found.Copyright © 2018. All rights reserved.