Handle (Java EE 5)

Java EE API


javax.ejb Interface Handle

All Superinterfaces:
Serializable

public interface Handle
extends Serializable

Implements: java.io.Serializable

Handle 接口由所有 EJB 对象句柄实现。句柄是对 EJB 对象网络引用的抽象。句柄将用作对 EJB 对象“健壮的”持久引用。
英文文档:

The Handle interface is implemented by all EJB object handles. A handle is an abstraction of a network reference to an EJB object. A handle is intended to be used as a "robust" persistent reference to an EJB object.


Method Summary
 EJBObject
 

Method Detail

public EJBObject getEJBObject() throws java.rmi.RemoteException
获得此句柄表示的 EJB 对象引用。
return 此句柄表示的 EJB 对象引用。
Throwsjava.rmi.RemoteException: 由于系统级失败无法获得 EJB 对象。
英文文档:

getEJBObject

EJBObject getEJBObject()
                       throws RemoteException
Obtain the EJB object reference represented by this handle.

Returns:
the EJB object reference represented by this handle.
Throws:
RemoteException - The EJB object could not be obtained because of a system-level failure.


Submit a bug or feature

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

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

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