public final class BootstrapContextImpl extends Object implements javax.resource.spi.BootstrapContext, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MAX_INSTANCE_LENGTH |
Constructor and Description |
---|
BootstrapContextImpl(String moduleName)
Constructs a
BootstrapContext with default
thread pool for work manager. |
BootstrapContextImpl(String poolId,
String moduleName,
ClassLoader rarCL)
Constructs a
BootstrapContext with a specified
thread pool for work manager. |
Modifier and Type | Method and Description |
---|---|
Timer |
createTimer()
Creates a
java.util.Timer instance. |
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry() |
javax.resource.spi.work.WorkManager |
getWorkManager()
Retrieves the work manager.
|
javax.resource.spi.XATerminator |
getXATerminator()
Retrieves the
XATerminator object. |
boolean |
isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> aClass) |
public static final int MAX_INSTANCE_LENGTH
public BootstrapContextImpl(String moduleName) throws ConnectorRuntimeException
BootstrapContext
with default
thread pool for work manager.moduleName
- resource-adapter nameConnectorRuntimeException
- If there is a failure in
retrieving WorkManager.public BootstrapContextImpl(String poolId, String moduleName, ClassLoader rarCL) throws ConnectorRuntimeException
BootstrapContext
with a specified
thread pool for work manager.poolId
- thread-pool-idmoduleName
- resource-adapter nameConnectorRuntimeException
- If there is a failure in
retrieving WorkManager.public Timer createTimer()
java.util.Timer
instance.
This can cause a problem, since the timer threads are not actually
under appserver control. We should override the timer later.createTimer
in interface javax.resource.spi.BootstrapContext
java.util.Timer
object.public boolean isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> aClass)
isContextSupported
in interface javax.resource.spi.BootstrapContext
public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
getTransactionSynchronizationRegistry
in interface javax.resource.spi.BootstrapContext
public javax.resource.spi.work.WorkManager getWorkManager()
getWorkManager
in interface javax.resource.spi.BootstrapContext
WorkManager
instance.CommonWorkManager
,
WorkManagerFactoryImpl
public javax.resource.spi.XATerminator getXATerminator()
XATerminator
object.getXATerminator
in interface javax.resource.spi.BootstrapContext
Copyright © 2019. All rights reserved.