|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.transaction.manager.DefaultTransactionManagerLookup
public class DefaultTransactionManagerLookup
Default 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 Summary | |
---|---|
DefaultTransactionManagerLookup()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTransactionManagerLookup()
Method Detail |
---|
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 attribute
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |