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。 
   
   
  
 
   
    
     
     
   
  
    
    
  
    
   
   
     
     | 从类 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)
 
   
   -