JavaTM 2 Platform
Standard Ed. 6

org.omg.PortableInterceptor
类 CurrentHelper

java.lang.Object
  继承者 org.omg.PortableInterceptor.CurrentHelper

public abstract class CurrentHelper
extends Object

Portable Interceptor Current(也称为 PICurrent)就是一个槽表 (slot table),每个服务都使用该表中的槽在其上下文和请求方或应答的服务上下文之间传输其上下文数据。每个需要使用 PICurrent 的服务都在初始化期间预定了一个或多个槽,然后在处理请求和应答期间使用这些槽。

在进行调用之前,通过调用 ORB.resolve_initial_references( "PICurrent" ) 获取 PICurrent。通过对 RequestInfo 对象进行 get_slot 操作,可从截取点内获取从线程域传送到请求域的 PICurrent 数据。PICurrent 也可以通过 resolve_initial_references 获取,但这样获取的是 Interceptor 的线程域 PICurrent。


构造方法摘要
CurrentHelper()
           
 
方法摘要
static Current extract(Any a)
           
static String id()
           
static void insert(Any a, Current that)
           
static Current narrow(Object obj)
           
static Current read(InputStream istream)
           
static TypeCode type()
           
static Current unchecked_narrow(Object obj)
           
static void write(OutputStream ostream, Current value)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CurrentHelper

public CurrentHelper()
方法详细信息

insert

public static void insert(Any a,
                          Current that)

extract

public static Current extract(Any a)

type

public static TypeCode type()

id

public static String id()

read

public static Current read(InputStream istream)

write

public static void write(OutputStream ostream,
                         Current value)

narrow

public static Current narrow(Object obj)

unchecked_narrow

public static Current unchecked_narrow(Object obj)

JavaTM 2 Platform
Standard Ed. 6

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

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