org.objectweb.jonas.resource
Class ResourceBootstrapContext

java.lang.Object
  extended byorg.objectweb.jonas.resource.ResourceBootstrapContext
All Implemented Interfaces:
javax.resource.spi.BootstrapContext

public class ResourceBootstrapContext
extends java.lang.Object
implements javax.resource.spi.BootstrapContext

This class implements the BootstrapContext interface of the Connector Architecture 1.5 specification.


Constructor Summary
ResourceBootstrapContext(javax.resource.spi.work.WorkManager wm, javax.resource.spi.XATerminator xa)
          Constructor
 
Method Summary
 java.util.Timer createTimer()
          Create a timer for use by the Resource Adapter
 javax.resource.spi.work.WorkManager getWorkManager()
          Return the associated WorkManager
 javax.resource.spi.XATerminator getXATerminator()
          Return an XATerminator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBootstrapContext

public ResourceBootstrapContext(javax.resource.spi.work.WorkManager wm,
                                javax.resource.spi.XATerminator xa)
Constructor

Parameters:
wm - WorkManager
xa - XATerminator
Method Detail

createTimer

public java.util.Timer createTimer()
                            throws javax.resource.spi.UnavailableException
Create a timer for use by the Resource Adapter

Specified by:
createTimer in interface javax.resource.spi.BootstrapContext
Returns:
Timer object
Throws:
javax.resource.spi.UnavailableException - if a Timer instance is unavailable

getWorkManager

public javax.resource.spi.work.WorkManager getWorkManager()
Return the associated WorkManager

Specified by:
getWorkManager in interface javax.resource.spi.BootstrapContext
Returns:
WorkManger object

getXATerminator

public javax.resource.spi.XATerminator getXATerminator()
Return an XATerminator

Specified by:
getXATerminator in interface javax.resource.spi.BootstrapContext
Returns:
XATerminator object