public class SimpleBootstrapContext extends Object implements javax.resource.spi.BootstrapContext
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
.
ResourceAdapter.start(javax.resource.spi.BootstrapContext)
,
ResourceAdapterFactoryBean
Constructor and Description |
---|
SimpleBootstrapContext(javax.resource.spi.work.WorkManager workManager)
Create a new SimpleBootstrapContext for the given WorkManager,
with no XATerminator available.
|
SimpleBootstrapContext(javax.resource.spi.work.WorkManager workManager,
javax.resource.spi.XATerminator xaTerminator)
Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.
|
Modifier and Type | Method and Description |
---|---|
Timer |
createTimer() |
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry() |
javax.resource.spi.work.WorkManager |
getWorkManager() |
javax.resource.spi.XATerminator |
getXATerminator() |
boolean |
isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> workContextClass) |
public SimpleBootstrapContext(javax.resource.spi.work.WorkManager workManager)
workManager
- the JCA WorkManager to use (may be null
)public SimpleBootstrapContext(javax.resource.spi.work.WorkManager workManager, javax.resource.spi.XATerminator xaTerminator)
workManager
- the JCA WorkManager to use (may be null
)xaTerminator
- the JCA XATerminator to use (may be null
)public javax.resource.spi.work.WorkManager getWorkManager()
getWorkManager
in interface javax.resource.spi.BootstrapContext
public javax.resource.spi.XATerminator getXATerminator()
getXATerminator
in interface javax.resource.spi.BootstrapContext
public Timer createTimer() throws javax.resource.spi.UnavailableException
createTimer
in interface javax.resource.spi.BootstrapContext
javax.resource.spi.UnavailableException
public boolean isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> workContextClass)
isContextSupported
in interface javax.resource.spi.BootstrapContext
public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
getTransactionSynchronizationRegistry
in interface javax.resource.spi.BootstrapContext
Copyright © 2015. All rights reserved.