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
| Modifier and Type | Field and Description |
|---|---|
| private final JndiSelector | |
| private volatile boolean | |
| private final Lock | |
| private static final Logger | |
| private volatile Selector | |
| private final Selector[] | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TransactionManager | Returns: TransactionManagerImplements net. |
| private Set | |
| public void | init()
Implements net. |
| private void | |
| public void | register(EhcacheXAResource
the XAResource to register for recovery in the choosen TM. resource, boolean true if the XAResource is meant to be registered for recovery purpose only. forRecovery)Implements net. |
| public void | setProperties(Properties
the properties parsed from the config file's
transactionManagerLookup tag's properties attribute properties)Implements net. |
| public void | unregister(EhcacheXAResource
the XAResource to register for recovery in the choosen TM. resource, boolean true if the XAResource is meant to be registered for recovery purpose only. forRecovery)Implements net. |
| defaultJndiSelector | back to summary |
|---|---|
| private final JndiSelector defaultJndiSelector | |
| initialized | back to summary |
|---|---|
| private volatile boolean initialized | |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| selector | back to summary |
|---|---|
| private volatile Selector selector | |
| transactionManagerSelectors | back to summary |
|---|---|
| private final Selector[] transactionManagerSelectors | |
| uninitializedEhcacheXAResources | back to summary |
|---|---|
| private final List<EhcacheXAResource> uninitializedEhcacheXAResources | |
| DefaultTransactionManagerLookup | back to summary |
|---|---|
| public DefaultTransactionManagerLookup() | |
| getTransactionManager | back to summary |
|---|---|
| public TransactionManager getTransactionManager() Implements net. Lookup available txnManagers
| |
| getUninitializedXAResourceCacheNames | back to summary |
|---|---|
| private Set | |
| init | back to summary |
|---|---|
| public void init() Implements net. Doc from net. Switch the TransactionManagerLookup implementation to its initialized state. All EhcacheXAResources registered before initialization are queued up internally and are only registered with the transaction manager during initialization. | |
| lookupTransactionManager | back to summary |
|---|---|
| private void lookupTransactionManager() | |
| register | back to summary |
|---|---|
| public void register(EhcacheXAResource resource, boolean forRecovery) Implements net. Doc from net. execute txnManager specific code to register the XAResource for recovery.
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Properties properties) Implements net. Doc from net. Setter to the properties properties. This will be called right after the class has been instantiated.
| |
| unregister | back to summary |
|---|---|
| public void unregister(EhcacheXAResource resource, boolean forRecovery) Implements net. Doc from net. execute txnManager specific code to unregister the XAResource for recovery.
| |