ResourceAdapterAssociation (Java EE 5)

Java EE API


javax.resource.spi Interface ResourceAdapterAssociation

All Known Subinterfaces:
ActivationSpec

public interface ResourceAdapterAssociation

Implemented by: ActivationSpec

此接口指定将 ResourceAdapter 对象与其他实现此接口的对象(如 ManagedConnectionFactoryActivationSpec)关联的方法。
英文文档:

This interface specifies the methods to associate a ResourceAdapter object with other objects that implement this interface like ManagedConnectionFactory and ActivationSpec.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 ResourceAdapter
 void
 

Method Detail

public ResourceAdapter getResourceAdapter()
获取关联的 ResourceAdapter 对象。
return 关联的 ResourceAdapter 对象。
英文文档:

getResourceAdapter

ResourceAdapter getResourceAdapter()
Get the associated ResourceAdapter object.

Returns:
the associated ResourceAdapter object.

public void setResourceAdapter(ResourceAdapter ra) throws ResourceException
将此对象与 ResourceAdapter 对象关联。注意,此方法只能调用一次。也就是说,在此对象的生命周期内不得更改关联。
ra 要关联的 ResourceAdapter 对象。
ThrowsResourceException: 一般异常。
ThrowsResourceAdapterInternalException: 与资源适配器有关的错误情况。
ThrowsIllegalStateException: 指示调用该方法时此对象处于非法状态。例如,在同一对象上多次调用此方法时发生该异常。
英文文档:

setResourceAdapter

void setResourceAdapter(ResourceAdapter ra)
                        throws ResourceException
Associate this object with a ResourceAdapter object. Note, this method must be called exactly once. That is, the association must not change during the lifetime of this object.

Parameters:
ra - ResourceAdapter object to be associated with.
Throws:
ResourceException - generic exception.
ResourceAdapterInternalException - resource adapter related error condition.
IllegalStateException - indicates that this object is in an illegal state for the method invocation. For example, this occurs when this method is called more than once on the same object.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!