Class SimpleBootstrapContext
java.lang.Object
org.springframework.jca.support.SimpleBootstrapContext
- All Implemented Interfaces:
- jakarta.resource.spi.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(@Nullable jakarta.resource.spi.work.WorkManager workManager) Create a new SimpleBootstrapContext for the given WorkManager, with no XATerminator available.SimpleBootstrapContext(@Nullable jakarta.resource.spi.work.WorkManager workManager, @Nullable jakarta.resource.spi.XATerminator xaTerminator) Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.SimpleBootstrapContext(@Nullable jakarta.resource.spi.work.WorkManager workManager, @Nullable jakarta.resource.spi.XATerminator xaTerminator, @Nullable jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry) Create a new SimpleBootstrapContext for the given WorkManager, XATerminator and TransactionSynchronizationRegistry.
- 
Method SummaryModifier and TypeMethodDescription@Nullable jakarta.transaction.TransactionSynchronizationRegistryjakarta.resource.spi.work.WorkManager@Nullable jakarta.resource.spi.XATerminatorbooleanisContextSupported(Class<? extends jakarta.resource.spi.work.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 jakarta.resource.spi.work.WorkManager workManager, @Nullable jakarta.resource.spi.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 jakarta.resource.spi.work.WorkManager workManager, @Nullable jakarta.resource.spi.XATerminator xaTerminator, @Nullable jakarta.transaction.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- 
getWorkManagerpublic jakarta.resource.spi.work.WorkManager getWorkManager()- Specified by:
- getWorkManagerin interface- jakarta.resource.spi.BootstrapContext
 
- 
getXATerminator- Specified by:
- getXATerminatorin interface- jakarta.resource.spi.BootstrapContext
 
- 
createTimer- Specified by:
- createTimerin interface- jakarta.resource.spi.BootstrapContext
- Throws:
- jakarta.resource.spi.UnavailableException
 
- 
isContextSupportedpublic boolean isContextSupported(Class<? extends jakarta.resource.spi.work.WorkContext> workContextClass) - Specified by:
- isContextSupportedin interface- jakarta.resource.spi.BootstrapContext
 
- 
getTransactionSynchronizationRegistrypublic @Nullable jakarta.transaction.TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()- Specified by:
- getTransactionSynchronizationRegistryin interface- jakarta.resource.spi.BootstrapContext
 
 
-