public class DefaultTransactionManagerLookup extends Object implements TransactionManagerLookup
TransactionManagerLookup implementation, that will be used by an initializing
Cache should the user have not specified otherwise.
This implementation will:
setProperties(java.util.Properties). That can be set in the CacheManager's configuration file.
The first TransactionManager instance is then kept and returned on each getTransactionManager() call| Constructor and Description |
|---|
DefaultTransactionManagerLookup() |
| Modifier and Type | Method and Description |
|---|---|
TransactionManager |
getTransactionManager()
Lookup available txnManagers
|
void |
init()
Switch the TransactionManagerLookup implementation to its initialized state.
|
void |
register(EhcacheXAResource resource,
boolean forRecovery)
execute txnManager specific code to register the XAResource for recovery.
|
void |
setProperties(Properties properties)
Setter to the properties properties.
|
void |
unregister(EhcacheXAResource resource,
boolean forRecovery)
execute txnManager specific code to unregister the XAResource for recovery.
|
public void init()
init in interface TransactionManagerLookuppublic TransactionManager getTransactionManager()
getTransactionManager in interface TransactionManagerLookuppublic void register(EhcacheXAResource resource, boolean forRecovery)
register in interface TransactionManagerLookupresource - the XAResource to register for recovery in the choosen TM.forRecovery - true if the XAResource is meant to be registered for recovery purpose only.public void unregister(EhcacheXAResource resource, boolean forRecovery)
unregister in interface TransactionManagerLookupresource - the XAResource to register for recovery in the choosen TM.forRecovery - true if the XAResource is meant to be registered for recovery purpose only.public void setProperties(Properties properties)
setProperties in interface TransactionManagerLookupproperties - the properties parsed from the config file's
transactionManagerLookup tag's properties attributeCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.