Referenceable (Java EE 5)

Java EE API


javax.resource Interface Referenceable

All Superinterfaces:
Referenceable
All Known Subinterfaces:
ConnectionFactory

public interface Referenceable
extends Referenceable

Implements: javax.naming.Referenceable
Implemented by: ConnectionFactory

Referenceable 接口扩展 javax.naming.Referenceable 接口。它支持用于在 JNDI 名称空间中注册连接工厂的 JNDI Reference 机制。注意,Reference 的实现和结构特定于应用服务器。

需要使用连接工厂接口的实现类来实现 java.io.Serializable 和 javax.resource.Referenceable 接口,以支持 JNDI 注册。

英文文档:

The Referenceable interface extends the javax.naming.Referenceable interface. It enables support for JNDI Reference mechanism for the registration of the connection factory in the JNDI name space. Note that the implementation and structure of Reference is specific to an application server.

The implementation class for a connection factory interface is required to implement both java.io.Serializable and javax.resource.Referenceable interfaces to support JNDI registration.

Version:
0.9
Author:
Rahul Sharma

Method Summary
 void
 
Methods inherited from interface javax.naming.Referenceable
 

Method Detail

public void setReference(javax.naming.Reference reference)
设置 Reference 实例。部署代码调用此方法设置以后可以通过 getReference 方法(在 javax.naming.Referenceable 接口中定义)返回的 Reference。
reference 一个 Reference 实例
See also getReference
英文文档:

setReference

void setReference(Reference reference)
Sets the Reference instance. This method is called by the deployment code to set the Reference that can be later returned by the getReference method (as defined in the javax.naming.Referenceable interface).

Parameters:
reference - A Reference instance
See Also:
Referenceable.getReference()


Submit a bug or feature

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

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

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