Class RemoteClass

java.lang.Object
org.glassfish.rmic.RemoteClass
All Implemented Interfaces:
Constants, RMIConstants, Constants, RuntimeConstants

public class RemoteClass extends Object implements RMIConstants
A RemoteClass object encapsulates RMI-specific information about a remote implementation class, i.e. a class that implements one or more remote interfaces. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
Author:
Peter Jones
  • Method Details

    • forClass

      public static RemoteClass forClass(BatchEnvironment env, ClassDefinition implClassDef)
      Create a RemoteClass object representing the remote meta-information of the given class. Returns true if successful. If the class is not a properly formed remote implementation class or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.
    • getClassDefinition

      public ClassDefinition getClassDefinition()
      Return the ClassDefinition for this class.
    • getName

      public Identifier getName()
      Return the name of the class represented by this object.
    • getRemoteInterfaces

      public ClassDefinition[] getRemoteInterfaces()
      Return an array of ClassDefinitions representing all of the remote interfaces implemented by this class. A remote interface is any interface that extends Remote, directly or indirectly. The remote interfaces of a class are the interfaces directly listed in either the class's "implements" clause, or the "implements" clause of any of its superclasses, that are remote interfaces. The order of the array returned is arbitrary, and some elements may be superfluous (i.e., superinterfaces of other interfaces in the array).
    • getRemoteMethods

      public RemoteClass.Method[] getRemoteMethods()
      Return an array of RemoteClass.Method objects representing all of the remote methods implemented by this class, i.e. all of the methods in the class's remote interfaces. The methods in the array are ordered according to the comparison of the strings consisting of their method name followed by their type signature, so each method's index in the array corresponds to its "operation number" in the JDK 1.1 version of the stub/skeleton protocol.
    • getInterfaceHash

      public long getInterfaceHash()
      Return the "interface hash" used to match a stub/skeleton pair for this class in the JDK 1.1 version of the stub/skeleton protocol.
    • toString

      public String toString()
      Return string representation of this object, consisting of the string "remote class " followed by the class name.
      Overrides:
      toString in class Object