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()
callConstructor 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 TransactionManagerLookup
public TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionManagerLookup
public void register(EhcacheXAResource resource, boolean forRecovery)
register
in interface TransactionManagerLookup
resource
- 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 TransactionManagerLookup
resource
- 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 TransactionManagerLookup
properties
- the properties parsed from the config file's
transactionManagerLookup tag's properties attributeCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.