站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

BootstrapContext (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.resource.spi
Interface BootstrapContext


public interface BootstrapContext

Used to pass context to the resource adapter start(BootstrapContext) method.


Method Summary
 Timer createTimer()
          Creates a new Timer that can be used to perform period work.
 WorkManager getWorkManager()
          Get the work manager, the resource adapter should use this for all work on new threads.
 XATerminator getXATerminator()
          Get the XATerminator.
 

Method Detail

createTimer

public Timer createTimer()
                  throws UnavailableException
Creates a new Timer that can be used to perform period work.

Returns:
the timer instance
Throws:
UnavailableException - when not timer is available. It can be retried later.

getWorkManager

public WorkManager getWorkManager()
Get the work manager, the resource adapter should use this for all work on new threads.

Returns:
the work manager

getXATerminator

public XATerminator getXATerminator()
Get the XATerminator. The resource adapter should use this to gain access to the transaction and crash recovery.

Returns:
the XATerminator


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.