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)
ServiceRegistryAwareServiceinjectServices in interface ServiceRegistryAwareServiceserviceRegistry - The registryprotected ServiceRegistry serviceRegistry()
protected JndiService jndiService()
protected abstract TransactionManager locateTransactionManager()
protected abstract UserTransaction locateUserTransaction()
public void configure(Map configValues)
Configurableconfigure in interface ConfigurableconfigValues - The configuration properties.protected boolean canCacheTransactionManagerByDefault()
protected boolean canCacheUserTransactionByDefault()
protected boolean canCacheTransactionManager()
protected boolean canCacheUserTransaction()
public TransactionManager retrieveTransactionManager()
JtaPlatformTransactionManagerretrieveTransactionManager in interface JtaPlatformTransactionManagerpublic TransactionManager getTransactionManager()
TransactionManagerAccessgetTransactionManager in interface TransactionManagerAccesspublic UserTransaction retrieveUserTransaction()
JtaPlatformUserTransactionretrieveUserTransaction in interface JtaPlatformUserTransactionpublic Object getTransactionIdentifier(Transaction transaction)
JtaPlatformgetTransactionIdentifier in interface JtaPlatformtransaction - The transaction to be identified.protected JtaSynchronizationStrategy getSynchronizationStrategy()
public void registerSynchronization(Synchronization synchronization)
JtaPlatformSynchronization in the means defined by the platform.registerSynchronization in interface JtaPlatformsynchronization - The synchronization to registerpublic boolean canRegisterSynchronization()
JtaPlatformSynchronization?canRegisterSynchronization in interface JtaPlatformSynchronization is currently allowed; false otherwise.public int getCurrentStatus()
                     throws SystemException
JtaPlatformgetCurrentStatus in interface JtaPlatformSystemException - Indicates a problem access the underlying statusCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.