public abstract class Servant extends Object
Servant类型。
在Java中, Servant类型映射到Java org.omg.PortableServer.Servant类。
它用作所有POA服务器实现的基类,并提供了可以由应用程序员调用的多种方法,以及由POA自身调用并可被用户覆盖以控制仆人行为方面的方法。
基于IDL到Java规范。
(CORBA V2.3.1)ptc / 00-01-08.pdf。
| Constructor and Description |
|---|
Servant() |
| Modifier and Type | Method and Description |
|---|---|
abstract String[] |
_all_interfaces(POA poa, byte[] objectId)
由ORB用于从仆人获取完整的类型信息。
|
POA |
_default_POA()
从与服务器关联的ORB实例返回根POA。
|
Delegate |
_get_delegate()
获取ORB供应商特定的PortableServer::Servant
PortableServer::Servant 。
|
Object |
_get_interface_def()
返回一个
InterfaceDef对象作为
CORBA::Object ,它定义了由
CORBA::Object实现的
Servant的运行时类型。
|
boolean |
_is_a(String repository_id)
检查是否指定的
repository_id存在通过返回的列表上
_all_interfaces()或者是
repository_id对通用CORBA对象。
|
boolean |
_non_existent()
检查是否存在
Object 。
|
byte[] |
_object_id()
允许轻松执行常用方法,相当于调用
PortableServer::Current::get_object_id 。
|
ORB |
_orb()
返回当前与
Servant (方便方法)
Servant的ORB的实例。
|
POA |
_poa()
方便执行常用方法,相当于
PortableServer::Current:get_POA 。
|
void |
_set_delegate(Delegate delegate)
通过为通过委托支持ORB可移植性的类提供一种方法来设置其委托,支持Java ORB可移植性接口。
|
Object |
_this_object()
允许仆人获取其针对该请求的目标CORBA对象的对象引用。
|
Object |
_this_object(ORB orb)
允许仆人获取它为该请求所体现的目标CORBA对象的对象引用。
|
public final Delegate _get_delegate()
PortableServer::Servant 。
_delegate的ORB供应商具体实现
PortableServer::Servant 。
public final void _set_delegate(Delegate delegate)
delegate - ORB供应商特定的PortableServer::Servant的
PortableServer::Servant 。
public final Object _this_object()
this_object
Object与请求
Object联的引用。
public final Object _this_object(ORB orb)
orb - 与仆人关联的ORB。
_this_object与请求
_this_object联的引用。
public final ORB _orb()
Servant (方便方法)相关
Servant的ORB的实例。
orb的ORB实例目前与相关
Servant 。
public final POA _poa()
PortableServer::Current:get_POA 。
poa与仆人
poa POA。
public final byte[] _object_id()
PortableServer::Current::get_object_id 。
object_id与此仆人
object_id的
Object ID。
public POA _default_POA()
default_POA的POA与
Servant 。
public boolean _is_a(String repository_id)
repository_id存在通过返回的列表上
_all_interfaces()或者是
repository_id对通用CORBA对象。
repository_id -在
repository_id到资料库列表或反对普通CORBA对象的ID进行检查。
is_a布尔值,指示指定是否
repository_id是在存储库列表或是相同的通用CORBA对象。
public boolean _non_existent()
Object 。
Servant提供了可以被派生仆人覆盖的_non_existent()的默认实现。
non_existent
true如果该对象不存在,
false否则。
public Object _get_interface_def()
InterfaceDef对象作为CORBA::Object ,它定义了由CORBA::Object实现的Servant的运行时类型。
_get_interface_def的调用者必须将结果缩小到InterfaceDef才能使用它。
如果默认行为不足,则派生_get_interface_def()可以覆盖此默认实现_get_interface_def() 。 正如在CORBA 2.3.1规范中定义的,第11.3.1节的默认行为_get_interface_def()是使用静态仆人的最派生接口或从动态仆人检索,以获得最派生接口InterfaceDef 。 这种行为必须得到支持Delegate实现了Servant 。
get_interface_def一个
InterfaceDef对象作为一个
CORBA::Object ,它定义了由
CORBA::Object实现的
Servant的运行时类型。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.