public abstract class AbstractJtaPlatform extends Object implements JtaPlatform, Configurable, ServiceRegistryAwareService, TransactionManagerAccess
Constructor and Description |
---|
AbstractJtaPlatform() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCacheTransactionManager() |
protected boolean |
canCacheTransactionManagerByDefault() |
protected boolean |
canCacheUserTransaction() |
protected boolean |
canCacheUserTransactionByDefault() |
boolean |
canRegisterSynchronization()
Can we currently register a
Synchronization ? |
void |
configure(Map configValues)
Configure the service.
|
int |
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platform
|
protected JtaSynchronizationStrategy |
getSynchronizationStrategy() |
Object |
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
TransactionManager |
getTransactionManager()
Obtain the transaction manager
|
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
|
protected JndiService |
jndiService() |
protected abstract TransactionManager |
locateTransactionManager() |
protected abstract UserTransaction |
locateUserTransaction() |
void |
registerSynchronization(Synchronization synchronization)
Register a JTA
Synchronization in the means defined by the platform. |
TransactionManager |
retrieveTransactionManager()
Locate the
TransactionManager |
UserTransaction |
retrieveUserTransaction()
Locate the
UserTransaction |
protected ServiceRegistry |
serviceRegistry() |
public void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices
in interface ServiceRegistryAwareService
serviceRegistry
- The registryprotected ServiceRegistry serviceRegistry()
protected JndiService jndiService()
protected abstract TransactionManager locateTransactionManager()
protected abstract UserTransaction locateUserTransaction()
public void configure(Map configValues)
Configurable
configure
in interface Configurable
configValues
- The configuration properties.protected boolean canCacheTransactionManagerByDefault()
protected boolean canCacheUserTransactionByDefault()
protected boolean canCacheTransactionManager()
protected boolean canCacheUserTransaction()
public TransactionManager retrieveTransactionManager()
JtaPlatform
TransactionManager
retrieveTransactionManager
in interface JtaPlatform
TransactionManager
public TransactionManager getTransactionManager()
TransactionManagerAccess
getTransactionManager
in interface TransactionManagerAccess
public UserTransaction retrieveUserTransaction()
JtaPlatform
UserTransaction
retrieveUserTransaction
in interface JtaPlatform
UserTransaction
public Object getTransactionIdentifier(Transaction transaction)
JtaPlatform
getTransactionIdentifier
in interface JtaPlatform
transaction
- The transaction to be identified.protected JtaSynchronizationStrategy getSynchronizationStrategy()
public void registerSynchronization(Synchronization synchronization)
JtaPlatform
Synchronization
in the means defined by the platform.registerSynchronization
in interface JtaPlatform
synchronization
- The synchronization to registerpublic boolean canRegisterSynchronization()
JtaPlatform
Synchronization
?canRegisterSynchronization
in interface JtaPlatform
Synchronization
is currently allowed; false otherwise.public int getCurrentStatus() throws SystemException
JtaPlatform
getCurrentStatus
in interface JtaPlatform
SystemException
- Indicates a problem access the underlying statusCopyright © 2016 JBoss by Red Hat. All rights reserved.