|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface IORInfoOperations
提供服务器端的 ORB 服务,该服务能够在构建 IOR 期间访问适用的策略并添加组件。ORB 将此接口实现的实例作为参数传递给 IORInterceptor.establish_components。
IORInterceptor| 方法摘要 | |
|---|---|
ObjectReferenceTemplate |
adapter_template()
返回刚创建并在 IOR interceptor 上运行的对象适配器的对象引用模板。 |
void |
add_ior_component_to_profile(TaggedComponent tagged_component,
int profile_id)
可移植 ORB 服务实现从其 establish_components 实现调用 add_ior_component_to_profile,以便向构造 IOR 时要包括的设置添加带标记的组件。 |
void |
add_ior_component(TaggedComponent tagged_component)
可移植 ORB 服务实现从其 establish_components 实现调用 add_ior_component,以便向构造 IOR 时要包括的设置添加带标记的组件。 |
ObjectReferenceFactory |
current_factory()
读取时返回当前工厂,该工厂将用于创建对应于刚创建并在 IOR interceptor 上运行的对象适配器的对象引用。 |
void |
current_factory(ObjectReferenceFactory newCurrent_factory)
读取时返回当前工厂,该工厂将用于创建对应于刚创建并在 IOR interceptor 上运行的对象适配器的对象引用。 |
Policy |
get_effective_policy(int type)
允许 ORB 服务实现确定对将构造的 IOR 有效的特定类型服务器端策略。 |
int |
manager_id()
返回刚创建并在 IOR interceptor 上运行的对象适配器的对象适配器管理器 id。 |
short |
state()
返回刚创建并在 IOR interceptor 上运行的对象适配器的对象适配器状态。 |
| 方法详细信息 |
|---|
Policy get_effective_policy(int type)
PortableServer.POA.create_POA 调用的 Policy 对象都可以通过 get_effective_policy 访问。
如果 ORB 已知给定类型的策略,则此操作将抛出 INV_POLICY,并带有标准次要代码 2。
type - 一个 int,指定要返回的策略的类型。
CORBA.Policy 对象。如果已知给定策略类型,但不存在有效的该类型策略,则此操作将返回 nil 对象引用。void add_ior_component(TaggedComponent tagged_component)
establish_components 实现调用 add_ior_component,以便向构造 IOR 时要包括的设置添加带标记的组件。此设置中的组件将包括在所有的配置文件中。
可以存在任何数量具有相同 ID 的组件。
a_component - 要添加的 IOP.TaggedComponent。
void add_ior_component_to_profile(TaggedComponent tagged_component,
int profile_id)
establish_components 实现调用 add_ior_component_to_profile,以便向构造 IOR 时要包括的设置添加带标记的组件。此设置中的组件将包括在指定的配置文件中。
可以存在任何数量具有相同 ID 的组件。
a_component - 要添加的 IOP.TaggedComponent。profile_id - 将添加此组件的配置文件的配置文件 id。
BAD_PARAM - 如果给定配置文件 ID 没有定义已知配置文件或不能向该配置文件添加组件,则将抛出此异常,并带有标准次代码 29。int manager_id()
short state()
ObjectReferenceTemplate adapter_template()
ObjectReferenceFactory current_factory()
void current_factory(ObjectReferenceFactory newCurrent_factory)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。