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 接 收 器 接 口 和 管 理 器Java:package com.inprise.vbroker.InterceptorExt;public interface ClientRequestInterceptor {public void preinvoke_premarshal(org.omg.CORBA.Object target,String operation,ServiceContextListHolder service_contexts_holder,Closure closure);public void preinvoke_postmarshal(org.omg.CORBA.Object target,OutputStream payload,Closure closure);public void postinvoke(org.omg.CORBA.Object target,ServiceContext[] service_contexts,InputStream payload,org.omg.CORBA.Environment env,Closure closure);public void exception_occurred(org.omg.CORBA.Object target,org.omg.CORBA.Environment env,Closure closure);}服 务 器 接 收 器目 前 有 四 种 服 务 器 接 收 器 :● POALifeCycleInterceptor 和 POALifeCycleInterceptorManager● ActiveObjectLifeCycleInterceptor 和ActiveObjectLifeCycleInterceptorManager● ServerRequestInterceptor 和 ServerRequestInterceptorManager● IORCreationInterceptor 和 IORCreationInterceptorManager要 取 得 关 于 服 务 器 接 收 器 的 详 情 , 请 参 阅 第 20 章 " 使 用 可 移 植 接 收 器 "。POALifeCycleInterceptorJava:POALifeCycleInterceptor 对 象 是 一 种 全 局 接 收 器 , 每 次 在 创 建 ( 通 过 create 方法 ) 或 销 毁 ( 通 过 destroy 方 法 ) POA 时 会 调 用 此 对 象 。package com.inprise.vbroker.InterceptorExt;public interface POALifeCycleInterceptor {public void create(org.omg.PortableServer.POA poa,org.omg.CORBA.PolicyListHolder policies_holder,IORValueHolder iorTemplate,InterceptorManagerControl control) ;public void destroy(org.omg.PortableServer.POA poa);}ActiveObjectLifeCycleInterceptor无 论 何 时 向 活 动 对 象 映 射 表 中 添 加 对 象 ( 通 过 create 方 法 ) 或 在 去 激 活 和 气 化 对象 ( 通 过 destroy 方 法 ) 之 后 均 会 调 用 ActiveObjectLifeCycleInterceptor 对 象 。使 用 4.x 接 收 器 21-3

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

Saved successfully!

Ooh no, something went wrong!