public abstract class Servant extends Object
Servant
型。在java中,该
Servant
类型映射到java
org.omg.PortableServer.Servant
类。它作为所有服务POA实现的基类,提供多种方法可以被应用程序调用,以及方法的调用POA本身可以被用户控制公务员行为方面。基于IDL java规格(CORBA回头)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()
根POA与公务员相关的ORB实例返回。
|
Delegate |
_get_delegate()
获取
PortableServer::Servant ORB供应商特定的实现。
|
Object |
_get_interface_def()
返回一个
InterfaceDef 对象作为一个
CORBA::Object 定义的
Servant 实施
CORBA::Object 运行时类型。
|
boolean |
_is_a(String repository_id)
检查是否存在于指定的
repository_id 返回的列表
_all_interfaces() 或是通用的CORBA对象的
repository_id 。
|
boolean |
_non_existent()
对于一个
Object 存在检查。
|
byte[] |
_object_id()
允许普通方法容易执行,相当于调用
PortableServer::Current::get_object_id 。
|
ORB |
_orb()
返回与当前相关
Servant ORB实例(方便法)。
|
POA |
_poa()
允许普通方法容易执行,相当于
PortableServer::Current:get_POA 。
|
void |
_set_delegate(Delegate delegate)
支持java ORB可移植接口提供了一个类,支持通过代理ORB携带设置委托方法。
|
Object |
_this_object()
让仆人去获得它化身为请求的目标对象的对象引用。
|
Object |
_this_object(ORB orb)
让仆人去获得它化身为请求的目标对象的对象引用。
|
public final Delegate _get_delegate()
PortableServer::Servant
ORB供应商特定的实现。
_delegate
的
PortableServer::Servant
ORB供应商特定的实现。
public final void _set_delegate(Delegate delegate)
delegate
的
PortableServer::Servant
ORB供应商特定的实现。
public final Object _this_object()
this_object
Object
参考与请求关联的。
public final Object _this_object(ORB orb)
orb
-宝珠,仆人是相关的。
_this_object
参考与请求关联的。
public final ORB _orb()
Servant
ORB实例(方便法)。
orb
与
Servant
目前相关的ORB实例。
public final POA _poa()
PortableServer::Current:get_POA
。
poa
POA的仆人相关。
public final byte[] _object_id()
PortableServer::Current::get_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()
或是通用的CORBA对象的
repository_id
。
repository_id
-
repository_id
是库中的列表或对通用的CORBA对象的身份检查。
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
定义的
Servant
实施
CORBA::Object
运行时类型。对
_get_interface_def
调用者必须缩小的结果为一个
InterfaceDef
使用它。
这_get_interface_def()
默认的实现可以被导出的仆人,如果默认的行为是不足够的。CORBA规范中定义2.3.1,第11.3.1,_get_interface_def()
的默认行为是使用一个动态的仆人获得InterfaceDef
最派生接口一个静态的仆人或派生接口检索。这种行为必须以实现Servant
的Delegate
支持。
get_interface_def
一
InterfaceDef
对象作为一个
CORBA::Object
定义的
Servant
实施
CORBA::Object
运行时类型。
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.