java.lang.Object
   org.omg.PortableServer.CurrentHelper
org.omg.PortableServer.CurrentHelper
 
  
 
   
   - 
    public abstract class CurrentHelper
     
- 
      extends 
      Object
     
 从 CORBA::Current 派生的 PortableServer::Current 接口,它提供一些方法实现,这些实现能够访问调用方法的对象的身份。提供 Current 接口是为了支持实现多个对象,但可以在任一 servant 上 POA 调度的方法调用的上下文中使用的 servant。如果要提供位置透明性,则 ORB 必须支持在本地和远程调用操作的上下文中都使用 Current。通过进行 CORBA::ORB::resolve_initial_references("POACurrent") 操作,应用程序可获得 Current 的实例。此后,它便可以在 POA 指派的方法的上下文中使用,以获取标识调用操作的对象的 POA 和 ObjectId。 
   
   
  
 
   
    
     
     
   
  
    
    
  
    
   
   
     
     | 从类 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)
 
   
   -