public final class JOTMTransactionManagerFactory extends Object implements TransactionManagerFactory
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY_CLASS_NAME
Name of the JOTM specific transaction manager factory class.
|
static String |
NAME
The name of the factory.
|
Constructor and Description |
---|
JOTMTransactionManagerFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the short alias for this factory instance.
|
TransactionManager |
getTransactionManager(Properties properties)
Acquires the appropriate javax.transaction.TransactionManager with the
given properties.
|
TransactionManager |
getTransactionManager(String factoryClassName,
Properties properties)
Acquires a javax.transaction.TransactionManager instance with the
given properties from the given factory.
|
public static final String FACTORY_CLASS_NAME
public static final String NAME
public String getName()
getName
in interface TransactionManagerFactory
TransactionManagerFactory.getName()
public TransactionManager getTransactionManager(Properties properties) throws TransactionManagerAcquireException
getTransactionManager
in interface TransactionManagerFactory
properties
- The properties passed to the transaction manager.TransactionManagerAcquireException
- If any failure occured when loading
the transaction manager.#getTransactionManager(java.util.Properties)
public TransactionManager getTransactionManager(String factoryClassName, Properties properties) throws TransactionManagerAcquireException
factoryClassName
- Class name of the factory copatibla with JOTM.properties
- The properties passed to the transaction manager.TransactionManagerAcquireException
- If any failure occured when loading
the transaction manager.Copyright © 2016. All rights reserved.