Package org.springframework.jca.support
Class SimpleBootstrapContext
java.lang.Object
org.springframework.jca.support.SimpleBootstrapContext
- All Implemented Interfaces:
 BootstrapContext
Simple implementation of the JCA 1.7 
BootstrapContext
 interface, used for bootstrapping a JCA ResourceAdapter in a local environment.
 Delegates to the given WorkManager and XATerminator, if any. Creates simple
 local instances of java.util.Timer.
- Since:
 - 2.0.3
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSimpleBootstrapContext(WorkManager workManager) Create a new SimpleBootstrapContext for the given WorkManager, with no XATerminator available.SimpleBootstrapContext(WorkManager workManager, XATerminator xaTerminator) Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.SimpleBootstrapContext(WorkManager workManager, XATerminator xaTerminator, TransactionSynchronizationRegistry transactionSynchronizationRegistry) Create a new SimpleBootstrapContext for the given WorkManager, XATerminator and TransactionSynchronizationRegistry. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanisContextSupported(Class<? extends WorkContext> workContextClass)  
- 
Constructor Details
- 
SimpleBootstrapContext
Create a new SimpleBootstrapContext for the given WorkManager, with no XATerminator available.- Parameters:
 workManager- the JCA WorkManager to use (may benull)
 - 
SimpleBootstrapContext
public SimpleBootstrapContext(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator) Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.- Parameters:
 workManager- the JCA WorkManager to use (may benull)xaTerminator- the JCA XATerminator to use (may benull)
 - 
SimpleBootstrapContext
public SimpleBootstrapContext(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator, @Nullable TransactionSynchronizationRegistry transactionSynchronizationRegistry) Create a new SimpleBootstrapContext for the given WorkManager, XATerminator and TransactionSynchronizationRegistry.- Parameters:
 workManager- the JCA WorkManager to use (may benull)xaTerminator- the JCA XATerminator to use (may benull)transactionSynchronizationRegistry- the TransactionSynchronizationRegistry to use (may benull)- Since:
 - 5.0
 
 
 - 
 - 
Method Details
- 
getWorkManager
- Specified by:
 getWorkManagerin interfaceBootstrapContext
 - 
getXATerminator
- Specified by:
 getXATerminatorin interfaceBootstrapContext
 - 
createTimer
- Specified by:
 createTimerin interfaceBootstrapContext- Throws:
 UnavailableException
 - 
isContextSupported
- Specified by:
 isContextSupportedin interfaceBootstrapContext
 - 
getTransactionSynchronizationRegistry
- Specified by:
 getTransactionSynchronizationRegistryin interfaceBootstrapContext
 
 -