public class SimpleBootstrapContext extends Object implements 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(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.
|
Modifier and Type | Method and Description |
---|---|
Timer |
createTimer() |
WorkManager |
getWorkManager() |
XATerminator |
getXATerminator() |
public SimpleBootstrapContext(WorkManager workManager)
workManager
- the JCA WorkManager to use (may be null
)public SimpleBootstrapContext(WorkManager workManager, XATerminator xaTerminator)
workManager
- the JCA WorkManager to use (may be null
)xaTerminator
- the JCA XATerminator to use (may be null
)public WorkManager getWorkManager()
getWorkManager
in interface BootstrapContext
public XATerminator getXATerminator()
getXATerminator
in interface BootstrapContext
public Timer createTimer() throws UnavailableException
createTimer
in interface BootstrapContext
UnavailableException