Voyager ORB

com.objectspace.voyager.corba
Class Corba

java.lang.Object
  |
  +--com.objectspace.voyager.corba.Corba

public final class Corba
extends java.lang.Object
implements IConstants

Corba defines static methods for converting CORBA IORs (interoperable object references) to/from Java references. It also contains methods for accessing and modifying the auto-anchor feature (see the user guide for more details).

You cannot create an instance of the Corba class.

Version:
3.0

Method Summary
static java.lang.String asIOR(java.lang.Object object)
          Return the address of the specified object as a CORBA IOR.
static java.lang.String asIOR(java.lang.Object object, java.lang.Class type)
          Return the address of the specified object as a CORBA IOR.
static java.lang.String asIOR(java.lang.Object object, java.lang.String classname)
          Return the address of the specified object as a CORBA IOR.
static void bindIdToJava(java.lang.String id, java.lang.String java)
           
static boolean isAnchoring()
          Return true if garbage collection is disabled for objects that are automatically converted into proxies when passed to/from remote operations or passed to asIOR().
static Proxy narrow(java.lang.Object object, java.lang.Class type)
           
static void setAnchoring(boolean flag)
          If the flag is true, disable garbage collection for objects that are automatically converted into proxies when passed to/from remote operations or passed to asIOR().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asIOR

public static java.lang.String asIOR(java.lang.Object object)
                              throws java.io.IOException
Return the address of the specified object as a CORBA IOR. Use the object's first domain interface when encoding the IOR type.
Parameters:
object - The object.
Throws:
java.io.IOException - The object was not already a proxy and could not be exported.

asIOR

public static java.lang.String asIOR(java.lang.Object object,
                                     java.lang.Class type)
                              throws java.io.IOException
Return the address of the specified object as a CORBA IOR. Use the specified class instead of the object's first domain interface when encoding the IOR type.
Parameters:
object - The object.
type - The class to pick.
Throws:
java.io.IOException - The object was not already a proxy and could not be exported.

asIOR

public static java.lang.String asIOR(java.lang.Object object,
                                     java.lang.String classname)
                              throws java.io.IOException
Return the address of the specified object as a CORBA IOR. Use the specified classname instead of the object's first domain interface when encoding the IOR type.
Parameters:
object - The object.
classname - The class name.
Throws:
java.io.IOException - The object was not already a proxy and could not be exported, or the specified class could not be found.

narrow

public static Proxy narrow(java.lang.Object object,
                           java.lang.Class type)
                    throws java.lang.ClassCastException

setAnchoring

public static void setAnchoring(boolean flag)
If the flag is true, disable garbage collection for objects that are automatically converted into proxies when passed to/from remote operations or passed to asIOR().
Parameters:
flag - The new setting.

isAnchoring

public static boolean isAnchoring()
Return true if garbage collection is disabled for objects that are automatically converted into proxies when passed to/from remote operations or passed to asIOR().

bindIdToJava

public static void bindIdToJava(java.lang.String id,
                                java.lang.String java)

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240