JavaTM 2 Platform
Standard Ed. 6

org.omg.PortableServer.portable
接口 Delegate


public interface Delegate

可移植性包包含供 ORB 实现者使用的接口和类。它提供了公共定义的 API,可用来连接 stub 和 ORB 框架。Delegate 接口提供特定于 ORB 供应商的 PortableServer::Servant 实现。遵守规范 CORBA V2.3.1 ptc/00-01-08.pdf


方法摘要
 POA default_POA(Servant Self)
          此方法的默认行为是从关联 servant 的 ORB 实例返回根 POA。
 Object get_interface_def(Servant self)
          此操作返回接口 Repository 中的一个对象,该对象提供可能对编程有用的类型信息。
 boolean is_a(Servant Self, String Repository_Id)
          此方法查看指定的 repid 是否存在于 _all_interfaces() 返回的列表上,或者该 repid 是否是通用 CORBA 对象的存储库 id。
 boolean non_existent(Servant Self)
          此操作用来检查 Object 是否存在。
 byte[] object_id(Servant Self)
          方法 _object_id() 等效于调用 PortableServer::Current::get_object_id。
 ORB orb(Servant Self)
          返回当前关联 Servant 的 ORB 实例的便捷方法。
 POA poa(Servant Self)
          method _poa() 等效于调用 PortableServer::Current:get_POA。
 Object this_object(Servant Self)
          此方法允许 servant 获取为请求实现的目标 CORBA 对象的对象引用。
 

方法详细信息

orb

ORB orb(Servant Self)
返回当前关联 Servant 的 ORB 实例的便捷方法。

参数:
Self - servant。
返回:
关联 Servant 的 ORB。

this_object

Object this_object(Servant Self)
此方法允许 servant 获取为请求实现的目标 CORBA 对象的对象引用。

参数:
Self - servant。
返回:
关联请求的对象引用。

poa

POA poa(Servant Self)
method _poa() 等效于调用 PortableServer::Current:get_POA。

参数:
Self - servant。
返回:
关联 servant 的 POA。

object_id

byte[] object_id(Servant Self)
方法 _object_id() 等效于调用 PortableServer::Current::get_object_id。

参数:
Self - servant。
返回:
与此 servant 关联的 ObjectId。

default_POA

POA default_POA(Servant Self)
此方法的默认行为是从关联 servant 的 ORB 实例返回根 POA。

参数:
Self - servant。
返回:
关联 servant 类的 POA。

is_a

boolean is_a(Servant Self,
             String Repository_Id)
此方法查看指定的 repid 是否存在于 _all_interfaces() 返回的列表上,或者该 repid 是否是通用 CORBA 对象的存储库 id。

参数:
Self - servant。
Repository_Id - 要在存储库列表中检查(或根据通用 CORBA 对象检查)的 repository_id。
返回:
一个 boolean 值,指示指定的 repid 是否存在于列表中,或者该 id 是否与获取 CORBA 对象的 id 相同。

non_existent

boolean non_existent(Servant Self)
此操作用来检查 Object 是否存在。

参数:
Self - servant。
返回:
一个 boolean 值,true 指示对象不存在;false 则相反。

get_interface_def

Object get_interface_def(Servant self)
此操作返回接口 Repository 中的一个对象,该对象提供可能对编程有用的类型信息。

参数:
self - servant。
返回:
对应于对象的类型信息。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only