Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » iiop » rmi » [javadoc | source]
org.jboss.iiop.rmi
public class: Util [javadoc | source]
java.lang.Object
   org.jboss.iiop.rmi.Util
This is a RMI/IIOP metadata conversion utility class. Routines here are conforming to the "Java(TM) Language to IDL Mapping Specification", version 1.1 (01-06-07).
Method from org.jboss.iiop.rmi.Util Summary:
getClassHashCode,   getIRIdentifierOfClass,   getTypeIDLName,   insertAnyPrimitive,   isValidRMIIIOP,   javaToIDLName,   primitiveTypeIDLName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.iiop.rmi.Util Detail:
 static long getClassHashCode(Class cls) 
    Return the class hash code, as specified in "The Common Object Request Broker: Architecture and Specification" (01-02-33), section 10.6.2.
 public static String getIRIdentifierOfClass(Class cls) 
    Return the IR global ID of the given class or interface. This is described in section 1.3.5.7. The returned string is in the RMI hashed format, like "RMI:java.util.Hashtable:C03324C0EA357270:13BB0F25214AE4B8".
 public static String getTypeIDLName(Class cls) throws RMIIIOPViolationException 
    Return the IDL type name for the given class. Here we use the mapping for parameter types and return values.
 public static  void insertAnyPrimitive(Any any,
    Object primitive) 
    Insert a java primitive into an Any. The primitive is assumed to be wrapped in one of the primitive wrapper classes.
 public static boolean isValidRMIIIOP(Class cls) throws RMIIIOPViolationException 
    Check if this class is valid for RMI/IIOP mapping. This method will either throw an exception or return true.
 public static String javaToIDLName(String name) 
    Map Java name to IDL name, as per sections 1.3.2.3, 1.3.2.4 and 1.3.2.2. This only works for a single name component, without a qualifying dot.
 static String primitiveTypeIDLName(Class type) 
    Handle mappings for primitive types, as per section 1.3.3.