接口 | 描述 |
---|---|
AdapterActivator |
一个适配器激活供应早熟禾创造孩子波阿斯对需求的能力,作为一个副作用的接收请求,名字孩子早熟(或其子女),或当find_poa叫做激活参数真值。
|
AdapterActivatorOperations |
一个适配器激活供应早熟禾创造孩子波阿斯对需求的能力,作为一个副作用的接收请求,名字孩子早熟(或其子女),或当find_poa叫做激活参数真值。
|
Current |
的portableserver::电流接口,从CORBA::目前,提供的方法实现访问的对象上调用该方法的身份。
|
CurrentOperations |
的portableserver::电流接口,从CORBA::目前,提供的方法实现访问的对象上调用该方法的身份。
|
ID_ASSIGNMENT_POLICY_ID |
org /天/ portableserver / id_assignment_policy_id.java。
|
ID_UNIQUENESS_POLICY_ID |
org /天/ portableserver / id_uniqueness_policy_id.java。
|
IdAssignmentPolicy |
idassignmentpolicy指定是否在创建的POA对象ID的应用程序或ORB的产生。
|
IdAssignmentPolicyOperations |
idassignmentpolicy指定是否在创建的POA对象ID的应用程序或ORB的产生。
|
IdUniquenessPolicy |
IdUniquenessPolicy指定的仆人在创建的POA活性必须有唯一的对象我的身份。
|
IdUniquenessPolicyOperations |
IdUniquenessPolicy指定的仆人在创建的POA活性必须有唯一的对象我的身份。
|
IMPLICIT_ACTIVATION_POLICY_ID |
org /天/ portableserver / implicit_activation_policy_id.java。
|
ImplicitActivationPolicy |
这一政策指定是否公务员内隐激活是在创建POA支持。
|
ImplicitActivationPolicyOperations |
这一政策指定是否公务员内隐激活是在创建POA支持。
|
LIFESPAN_POLICY_ID |
org /天/ portableserver / lifespan_policy_id.java。
|
LifespanPolicy |
LifespanPolicy指定的对象在创建的POA实现寿命。
|
LifespanPolicyOperations |
LifespanPolicy指定的对象在创建的POA实现寿命。
|
POA |
POA对象管理对象集合的实现。
|
POAManager |
每个对象都有一个相关的poamanager对象POA。
|
POAManagerOperations |
每个对象都有一个相关的poamanager对象POA。
|
POAOperations |
POA对象管理对象集合的实现。
|
REQUEST_PROCESSING_POLICY_ID |
org /天/ portableserver / request_processing_policy_id.java。
|
RequestProcessingPolicy |
这一政策指定请求的处理创造了POA。
|
RequestProcessingPolicyOperations |
这一政策指定请求的处理创造了POA。
|
SERVANT_RETENTION_POLICY_ID |
org /天/ portableserver / servant_retention_policy_id.java。
|
ServantActivator |
当POA的保留政策使用的是servantactivators仆人经理。
|
ServantActivatorOperations |
当POA的保留政策使用的是servantactivators仆人经理。
|
ServantLocator |
当POA它使用的是servantlocators仆人管理non_retain政策。
|
ServantLocatorOperations |
当POA它使用的是servantlocators仆人管理non_retain政策。
|
ServantManager |
一个仆人经理提供POA与激活POA需求时接收到一个请求针对活动对象物体的能力。
|
ServantManagerOperations |
一个仆人经理提供POA与激活POA需求时接收到一个请求针对活动对象物体的能力。
|
ServantRetentionPolicy |
这一政策指定是否保留了POA活性仆人在一个活动对象图。
|
ServantRetentionPolicyOperations |
这一政策指定是否保留了POA活性仆人在一个活动对象图。
|
THREAD_POLICY_ID |
org /天/ portableserver / thread_policy_id.java。
|
ThreadPolicy |
ThreadPolicy指定的线程模型用于创建的POA。
|
ThreadPolicyOperations |
ThreadPolicy指定的线程模型用于创建的POA。
|
类 | 描述 |
---|---|
_ServantActivatorStub |
当POA的保留政策使用的是servantactivators仆人经理。
|
_ServantLocatorStub |
当POA它使用的是servantlocators仆人管理non_retain政策。
|
CurrentHelper |
的portableserver::电流接口,从CORBA::目前,提供的方法实现访问的对象上调用该方法的身份。
|
DynamicImplementation |
允许对象调用动态处理。
|
ForwardRequestHelper |
org /天/ portableserver / forwardrequesthelper.java。
|
IdAssignmentPolicyValue |
的idassignmentpolicyvalue可以有以下值。
|
IdUniquenessPolicyValue |
iduniquenesspolicyvalue可以有以下值。
|
ImplicitActivationPolicyValue |
implicitactivationpolicyvalue有以下语义。
|
LifespanPolicyValue |
的lifespanpolicyvalue可以有以下值。
|
POAHelper |
POA对象管理对象集合的实现。
|
RequestProcessingPolicyValue |
的requestprocessingpolicyvalue可以有以下值。
|
Servant |
定义本地
Servant 型。
|
ServantActivatorHelper |
当POA的保留政策使用的是servantactivators仆人经理。
|
ServantActivatorPOA |
当POA的保留政策使用的是servantactivators仆人经理。
|
ServantLocatorHelper |
当POA它使用的是servantlocators仆人管理non_retain政策。
|
ServantLocatorPOA |
当POA它使用的是servantlocators仆人管理non_retain政策。
|
ServantRetentionPolicyValue |
servantretentionpolicyvalue可以有以下值。
|
ThreadPolicyValue |
的threadpolicyvalue可以有以下值。
|
异常 | 描述 |
---|---|
ForwardRequest |
org /天/ portableserver / forwardrequest.java。
|
在java中,便携式对象适配器(POA)为基础的动态框架接口(DSI)从标准DynamicImplementation类继承人,继承自Servant类。当地Servant型的POA PortableServer模块定义。在java中,该Servant类型映射到java org.omg.PortableServer.Servant类。它作为所有服务POA实现的基类,提供多种方法可以被应用程序调用,以及方法的调用POA本身可以被用户控制公务员行为方面。
对于精确的名单支持官方OMG规范的java [商标]平台部分,标准版6符合,看到Official Specifications for CORBA support in Java[tm] SE 6。
的PortableServer模块定义了以下POA相关接口:
此外,POA定义Servant原生型。
上面列出的每个接口都有一个相关的Operations
接口。的Operations
接口由idlj
编译器生成的,包含在其相关的接口定义的方法签名。的Operations
接口可以由客户端和服务器端的访问,而其相关的接口只能被客户。
PolicyValue
提供用于
create_POA
叫值,设置为POA的政策。看下面的
sample code为示范。
PolicyValue
文件包括以下内容:
IdAssignmentPolicyValue
IdUniquenessPolicyValue
ImplicitActivationPolicyValue
LifespanPolicyValue
RequestProcessingPolicyValue
ServantRetentionPolicyValue
ThreadPolicyValue
辅助类,它是所有用户定义的类型在OMG IDL接口生成,供给静态方法需要操纵这些类型。这是一个辅助类,应用程序只使用一个方法:方法的narrow
。只有java接口映射到IDL接口将有一个辅助类,包括narrow
方法,所以在PortableServer
包,只有下面的类有一个narrow
方法:
ForwardRequestHelper
ServantActivatorHelper
ServantLocatorHelper
早熟禾类用于实现ServantActivator
或ServantLocator
。
的ForwardRequest
异常指示的圆球,它负责提供当前请求和随后的ForwardRequest
请求对象在异常的forward_reference
成员表示。
最PortableServer
确实对用户是透明的。其结果是,程序员将只使用上面提到的几个接口。其余的接口将由ORB实现提供。应用程序程序员感兴趣的接口如下:
AdapterActivator
适配器的激活不相关的POAs。一个适配器激活供应早熟禾创造孩子波阿斯对需求的能力,作为一个副作用的接收请求,名字孩子早熟(或其子女),或当find_POA
叫做激活参数值TRUE
。应用服务器创建所有需要的问责制度在执行的开始呢不需要使用或提供一个适配器激活;只有在波阿斯需要在请求处理期间创建的情况下是必要的。
ServantLocator
当早熟的NON_RETAIN
政策,它使用的是ServantLocator
s仆人经理。
ServantActivator
当早熟的RETAIN
政策,它使用的是公务员管理ServantActivator
s。
这个包通过Cookie类型作为out
参数提供CookieHolder类。的CookieHolder
类遵循完全相同的模式作为基本类型其他架类。
对于java IDL的概述,请参阅:
进口javax.naming.initialcontext;进口javax.naming.context;进口javax.rmi.portableremoteobject;进口com.sun.corba.se.impl.poa.poaorb;进口org。OMG。portableserver *;导入java。利用*;进口org。OMG的CORBA。*;进口javax.rmi.corba.stub;进口javax.rmi.corba.util;公共课helloserver {公共helloserver(string [] args){尝试{getproperties()性质P =系统;/ / p.put(“org。OMG的CORBA。ORBClass”、“COM。太阳。CORBA。EE。内部。早熟。poaorb”);球球=球体。init(args,P);早熟rootpoa =(POA)的球体。resolve_initial_references(“RootPOA”);政策[ ] tpolicy =新政策[ 3 ];tpolicy [ 0 ] = rootpoa create_lifespan_policy(。lifespanpolicyvalue.transient);tpolicy [ 1 ] = rootpoa create_request_processing_policy(。requestprocessingpolicyvalue.use_active_object_map_only);tpolicy [ 2 ] = rootpoa create_servant_retention_policy(。servantretentionpolicyvalue保留);POA TPOA = rootpoa。create_poa(“mytransientpoa”,空,tpolicy);字符串对象id =“myobjectid”;字节[] = ObjectId getbytes() OID;org.omg.corba.object obj = TPOA。create_reference_with_id(OID,新的_helloimpl_tie()。_all_interfaces(TPOA,OID)[ 0 ]);hellointerface helloref =(hellointerface portableremoteobject窄()。obj,HelloInterface.class);背景initialnamingcontext =新initialcontext();initialnamingcontext。绑定(“helloservice”,helloref);系统的输入(“你好服务器:准备好…”);run()宝珠;}捕获(异常E)系统的输入(“麻烦:“+ E);E. printstacktrace();}}public static void main(String参数[ ]){新的helloserver(args);}}
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.