|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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:
InitialContext
;
TransactionManager
instance, look for a Bitronix TransactionManager;
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 |
register(EhcacheXAResource resource)
execute txnManager specific code to register the XAResource for recovery. |
void |
setProperties(Properties properties)
Setter to the properties properties. |
void |
unregister(EhcacheXAResource resource)
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 TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionManagerLookup
public void register(EhcacheXAResource resource)
register
in interface TransactionManagerLookup
resource
- the XAResource to register for recovery in the choosen TM.public void unregister(EhcacheXAResource resource)
unregister
in interface TransactionManagerLookup
resource
- the XAResource to register for recovery in the choosen TM.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 |