public interface ORBInitInfoOperations
ORBInitializer,允许它来登记拦截而ORB初始化执行其他职责。
的ORBInitInfo对象只能在ORB.init。如果服务保持参考其ORBInitInfo对象,试图在ORB.init返回使用,对象不存在,OBJECT_NOT_EXIST例外将抛出。
ORBInitializer
| Modifier and Type | Method and Description |
|---|---|
void |
add_client_request_interceptor(ClientRequestInterceptor interceptor)
用于添加一个客户端请求的客户端请求拦截器拦截列表。
|
void |
add_ior_interceptor(IORInterceptor interceptor)
用于添加一个IOR拦截器的IOR拦截器列表。
|
void |
add_server_request_interceptor(ServerRequestInterceptor interceptor)
用于添加一个服务器端的请求,服务器端请求拦截器拦截列表。
|
int |
allocate_slot_id()
叫上
PortableInterceptor.Current分配槽。
|
String[] |
arguments()
返回传递给
ORB.init参数。
|
CodecFactory |
codec_factory()
返回
IOP.CodecFactory。
|
String |
orb_id()
返回ORB初始化的ID。
|
void |
register_initial_reference(String id, Object obj)
相同的
ORB.register_initial_reference。
|
void |
register_policy_factory(int type, PolicyFactory policy_factory)
注册了一个给定的
PolicyType
PolicyFactory。
|
Object |
resolve_initial_references(String id)
相同的
ORB.resolve_initial_references。
|
String[] arguments()
ORB.init参数。他们可能会或可能不包含ORB的论点。
String orb_id()
CodecFactory codec_factory()
IOP.CodecFactory。的
CodecFactory通常是通过调用
ORB.resolve_initial_references( "CodecFactory" )获得,但由于球尚未和拦截,特别是当处理的服务范围,将需要一个
Codec,获得
Codec在ORB初始化是必要的手段。
void register_initial_reference(String id, Object obj) throws InvalidName
ORB.register_initial_reference。此相同的功能存在,因为这里的球,没有完全初始化,不可用,但初始参考可能需要注册为注册部分拦截。唯一不同的是,这一操作对ORB的版本使用PIDL(
CORBA.ORB.ObjectId)和(
CORBA.ORB.InvalidName)而在该接口的版本使用IDL在这个接口中定义的语义是一致的。
InvalidName
Object resolve_initial_references(String id) throws InvalidName
ORB.resolve_initial_references。此相同的功能存在,因为这里的球,没有完全初始化,不可用,但初始参考可能作为拦截登记部分从球体的要求。唯一不同的是,这一操作对ORB的版本使用PIDL(
CORBA::ORB::ObjectId和
CORBA::ORB::InvalidName)而在该接口的版本使用IDL在这个接口中定义的语义是一致的。
此操作只能在post_init。
InvalidName
void add_client_request_interceptor(ClientRequestInterceptor interceptor) throws DuplicateName
interceptor -
ClientRequestInterceptor加以补充。
DuplicateName拦截器已经用这个拦截器的名字注册的投。
void add_server_request_interceptor(ServerRequestInterceptor interceptor) throws DuplicateName
interceptor - serverrequestinterceptor加以补充。
DuplicateName拦截器已经用这个拦截器的名字注册的投
void add_ior_interceptor(IORInterceptor interceptor) throws DuplicateName
interceptor - iorinterceptor加以补充。
DuplicateName -如果一个IOR拦截器已经用这个拦截器的名字注册的投。
int allocate_slot_id()
PortableInterceptor.Current分配一个时隙。
注意,当槽ID可以在ORB初始化配置,插槽本身不能初始化。
BAD_INV_ORDER -扔,一个标准的小代码14,如果
set_slot或
get_slot是呼吁
PICurrent在ORB初始化。
Current
void register_policy_factory(int type,
PolicyFactory policy_factory)
PolicyType
PolicyFactory。
type的政策类型,给出的
PolicyFactory服务。
policy_factory -给定的政策型工厂。
BAD_INV_ORDER -扔,一个标准的小代码16,如果给定一个
PolicyFactory
PolicyType已经存在。
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.