Class ClassMapper

java.lang.Object
com.sun.jini.reggie.ClassMapper

public class ClassMapper extends Object
Maps Class to ServiceType/Base, Class to EntryClass/Base, and Class to Field[], with caching for efficiency.
Author:
Sun Microsystems, Inc.
  • Method Details

    • toServiceTypeBase

      public static ServiceTypeBase toServiceTypeBase(Class cls) throws MarshalException
      Returns a ServiceTypeBase descriptor for a class.
      Throws:
      MarshalException
    • toServiceType

      public static com.sun.jini.reggie.ServiceType toServiceType(Class cls) throws MarshalException
      Returns a ServiceType descriptor for a class.
      Throws:
      MarshalException
    • toServiceType

      public static com.sun.jini.reggie.ServiceType[] toServiceType(Class[] classes) throws MarshalException
      Converts an array of Class to an array of ServiceType.
      Throws:
      MarshalException
    • toEntryClassBase

      public static EntryClassBase toEntryClassBase(Class cls) throws MarshalException
      Returns a EntryClassBase descriptor for a class.
      Throws:
      MarshalException
    • getFields

      public static com.sun.jini.reggie.ClassMapper.EntryField[] getFields(Class cls)
      Returns public fields, in super to subclass order, sorted alphabetically within a given class.