12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.x 接 收 器 接 口 和 管 理 器● 服 务 器 接 收 器 :● POALifeCycleInterceptor● ActiveObjectLifeCycleInterceptor● ServerRequestInterceptor● IORCreationInterceptor● ServiceResolver interceptor客 户 端 接 收 器目 前 有 两 种 客 户 端 接 收 器 及 其 相 应 的 管 理 器 :● BindInterceptor 和 BindInterceptorManager● ClientRequestInterceptor 和 ClientRequestInterceptorManager要 取 得 关 于 客 户 端 接 收 器 的 详 情 , 请 参 阅 第 20 章 " 使 用 可 移 植 接 收 器 "。BindInterceptorJava:BindInterceptor 对 象 是 全 局 接 收 器 , 在 限 制 前 或 限 制 后 客 户 端 上 会 调 用 此 对 象 。package com.inprise.vbroker.InterceptorExt;public interface BindInterceptor {public IORValue bind(IORValue ior,org.omg.CORBA.Object target,boolean rebind,Closure closure);public IORValue bind_failed(IORValue ior,org.omg.CORBA.Object target,Closure closure);public void bind_succeeded(IORValue ior,org.omg.CORBA.Object target,int Index,InterceptorManagerControl control,Closure closure);public void exception_occurred(IORValue ior,org.omg.CORBA.Object target,org.omg.CORBA.Environment env,Closure closure);}ClientRequestInterceptorClientRequestInterceptor 对 象 可 在 BindInterceptor 对 象 执 行 bind_succeeded 调用 期 间 注 册 , 且 在 整 个 连 接 期 间 保 持 激 活 状 态 。 其 方 法 中 的 两 个 是 在 从 客 户 端 对 象上 调 用 之 前 调 用 的 , 一 个 是 (preinvoke_premarshal) 在 参 数 被 汇 集 之 前 , 而 另 一 个是 (preinvoke_postmarshal) 在 被 汇 集 之 后 。 第 三 个 方 法 (postinvoke) 在 请 求 完 成之 后 调 用 。21-2 <strong>VisiBroker</strong> 开 发 者 指 南

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!