public class SimpleBootstrapContext
extends java.lang.Object
javax.resource.spi.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
.
javax.resource.spi.ResourceAdapter#start(javax.resource.spi.BootstrapContext)
,
ResourceAdapterFactoryBean
Modifier and Type | Field and Description |
---|---|
private WorkManager |
workManager |
private XATerminator |
xaTerminator |
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 |
---|---|
java.util.Timer |
createTimer() |
WorkManager |
getWorkManager() |
XATerminator |
getXATerminator() |
private WorkManager workManager
private XATerminator xaTerminator
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
)