JavaTM 2 Platform
Standard Ed. 6

org.omg.PortableInterceptor
接口 IORInterceptor_3_0Operations

所有超级接口:
InterceptorOperations, IORInterceptorOperations
所有已知子接口:
IORInterceptor_3_0

public interface IORInterceptor_3_0Operations
extends IORInterceptorOperations

org/omg/PortableInterceptor/IORInterceptor_3_0Operations.java。由 "3.2" 版的 IDL-to-Java 编译器(可移植)从 ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl 生成,生成时间为 2006 年 6 月 30 日,星期五上午 12:40:10 (GMT-08:00)。


方法摘要
 void adapter_manager_state_changed(int id, short state)
          只要适配器管理器的状态更改时便调用此方法。
 void adapter_state_changed(ObjectReferenceTemplate[] templates, short state)
          只要对象适配器的状态发生更改,并且该状态更改不是由适配器管理器引起的,便调用此方法。
 void components_established(IORInfo info)
          在已经对所有已注册 IORInterceptor 实例调用 establish_components 方法后,对所有已注册 IORInterceptor_3_0 实例调用 components_established 方法。
 
从接口 org.omg.PortableInterceptor.IORInterceptorOperations 继承的方法
establish_components
 
从接口 org.omg.PortableInterceptor.InterceptorOperations 继承的方法
destroy, name
 

方法详细信息

components_established

void components_established(IORInfo info)
在已经对所有已注册 IORInterceptor 实例调用 establish_components 方法后,对所有已注册 IORInterceptor_3_0 实例调用 components_established 方法。此调用中可将 adapter_template 用于 info。此调用中可使用 info 获取或设置 current_factory。

此方法抛出的任何异常可由调用此 interceptor 的对象适配器处理。就 POA 而言,一个异常将导致带有 OMG 标准次代码 (minor code) 6 的 OBJ_ADAPTER 异常。

参数:
info - 将创建的对象适配器的 IORInfo。

adapter_manager_state_changed

void adapter_manager_state_changed(int id,
                                   short state)
只要适配器管理器的状态更改时便调用此方法。对于 POA,指的是 POAManager。通过 adapter_manager_state_changed 报告的状态更改不会再通过 adapter_state_changed 报告。

参数:
id - 更改状态的适配器管理器的适配器管理器 id
state - 适配器管理器的新状态

adapter_state_changed

void adapter_state_changed(ObjectReferenceTemplate[] templates,
                           short state)
只要对象适配器的状态发生更改,并且该状态更改不是由适配器管理器引起的,便调用此方法。向所有已注册 IORInterceptor_3_0 实例报告此类更改。

参数:
templates - 发生此状态更改的 ObjectReferenceTemplate 实例序列。
state - 由所有模板共享的新 AdapterState

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策