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 SummaryConstructorsConstructorDescriptionSimpleBootstrapContext(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 SummaryModifier and TypeMethodDescriptionbooleanisContextSupported(Class<? extends WorkContext> workContextClass) 
- 
Constructor Details- 
SimpleBootstrapContextCreate a new SimpleBootstrapContext for the given WorkManager, with no XATerminator available.- Parameters:
- workManager- the JCA WorkManager to use (may be- null)
 
- 
SimpleBootstrapContextpublic 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 be- null)
- xaTerminator- the JCA XATerminator to use (may be- null)
 
- 
SimpleBootstrapContextpublic 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 be- null)
- xaTerminator- the JCA XATerminator to use (may be- null)
- transactionSynchronizationRegistry- the TransactionSynchronizationRegistry to use (may be- null)
- Since:
- 5.0
 
 
- 
- 
Method Details- 
getWorkManager- Specified by:
- getWorkManagerin interface- BootstrapContext
 
- 
getXATerminator- Specified by:
- getXATerminatorin interface- BootstrapContext
 
- 
createTimer- Specified by:
- createTimerin interface- BootstrapContext
- Throws:
- UnavailableException
 
- 
isContextSupported- Specified by:
- isContextSupportedin interface- BootstrapContext
 
- 
getTransactionSynchronizationRegistry- Specified by:
- getTransactionSynchronizationRegistryin interface- BootstrapContext
 
 
-