12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.x 接 收 器 接 口 和 管 理 器Java:该 接 收 器 可 以 通 过 POALifeCycleInterceptor 在 POA 创 建 时 每 个 POA 注 册 一个 。 只 有 在 POA 采 用 RETAIN 方 针 时 才 可 以 注 册 此 接 收 器 。package com.inprise.vbroker.InterceptorExt;public interface ActiveObjectLifeCycleInterceptor {public void create(byte[] oid,org.omg.PortableServer.Servant servant,org.omg.PortableServer.POA adapter);public void destroy (byte[] oid,org.omg.PortableServer.Servant servant,org.omg.PortableServer.POA adapter);}ServerRequestInterceptor在 调 用 之 前 ( 通 过 preinvoke 方 法 ) 和 调 用 之 后 的 答 复 汇 集 之 前 和 之 后 ( 分 别 通过 postinvoke_premarshal 和 postinvoke_premarshal 方 法 ) 调 用 远 端 对 象 的 服 务器 实 现 的 过 程 中 多 个 阶 段 均 会 调 用 ServerRequestInterceptor 对 象 。 此 接 收 器 可 以通 过 POALifeCycleInterceptor 对 象 在 POA 创 建 时 每 个 POA 注 册 一 个 。package com.inprise.vbroker.InterceptorExt;public interface ServerRequestInterceptor {public void preinvoke(org.omg.CORBA.Object target,String operation,ServiceContext[] service_contexts,InputStream payload,Closure closure);public void postinvoke_premarshal(org.omg.CORBA.Object target,ServiceContextListHolder service_contexts_holder,org.omg.CORBA.Environment env,Closure closure);public void postinvoke_postmarshal(org.omg.CORBA.Object target,OutputStream payload,Closure closure);public void exception_occurred(org.omg.CORBA.Object target,org.omg.CORBA.Environment env,Closure closure);}IORCreationInterceptorJava:无 论 何 时 POA 创 建 对 象 引 用 ( 通 过 create 方 法 ) 时 均 会 调 用IORCreationInterceptor 对 象 。 此 接 收 器 可 以 通 过 POALifeCycleInterceptor 在POA 创 建 时 每 个 POA 注 册 一 个 。package com.inprise.vbroker.InterceptorExt;public interface IORCreationInterceptor {public void create(org.omg.PortableServer.POA poa,IORValueHolder ior);}21-4 <strong>VisiBroker</strong> 开 发 者 指 南

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

Saved successfully!

Ooh no, something went wrong!