public class LookupTransactionManagerProvider extends java.lang.Object implements TransactionManagerProvider
TransactionManagerProvider implementation that resolves the TransactionManagerWrapper through the
lookup class provided through its LookupTransactionManagerProviderConfiguration.
The lifecycle this implementation will honour is as follows:
start the service will ask the lookup instance for a TransactionManagerWrapper
which it will then cache and serve to service users.stop the service will forget about the known TransactionManagerWrapperstart, the service will ask the lookup instance for a new
TransactionManagerWrapperTransactionManagerWrapper
unless it can be considered a singleton.| Constructor and Description |
|---|
LookupTransactionManagerProvider(LookupTransactionManagerProviderConfiguration config)
Creates a new instance with the provided configuration.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionManagerWrapper |
getTransactionManagerWrapper()
Return an instance of
TransactionManagerWrapper. |
void |
start(org.ehcache.spi.service.ServiceProvider<org.ehcache.spi.service.Service> serviceProvider) |
void |
stop() |
public LookupTransactionManagerProvider(LookupTransactionManagerProviderConfiguration config)
config - the service creation configurationjava.lang.NullPointerException - if the config is nullpublic TransactionManagerWrapper getTransactionManagerWrapper()
TransactionManagerWrapper.getTransactionManagerWrapper in interface TransactionManagerProviderTransactionManagerWrapper.public void start(org.ehcache.spi.service.ServiceProvider<org.ehcache.spi.service.Service> serviceProvider)
start in interface org.ehcache.spi.service.Servicepublic void stop()
stop in interface org.ehcache.spi.service.Service