Save This Page
Home » openjdk-7 » java » rmi » server » [javadoc | source]
java.rmi.server
abstract public class: RemoteStub [javadoc | source]
java.lang.Object
   java.rmi.server.RemoteObject
      java.rmi.server.RemoteStub

All Implemented Interfaces:
    Remote, Serializable

Direct Known Subclasses:
    ActivationGroup_Stub

The RemoteStub class is the common superclass to client stubs and provides the framework to support a wide range of remote reference semantics. Stub objects are surrogates that support exactly the same set of remote interfaces defined by the actual implementation of the remote object.
Fields inherited from java.rmi.server.RemoteObject:
ref
Constructor:
 protected RemoteStub() 
 protected RemoteStub(RemoteRef ref) 
    Constructs a RemoteStub, with the specified remote reference.
    Parameters:
    ref - the remote reference
    since: JDK1.1 -
Method from java.rmi.server.RemoteStub Summary:
setRef
Methods from java.rmi.server.RemoteObject:
equals,   getRef,   hashCode,   toString,   toStub
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.rmi.server.RemoteStub Detail:
 protected static  void setRef(RemoteStub stub,
    RemoteRef ref) 
Deprecated! no - replacement. The setRef method is not needed since RemoteStubs can be created with the RemoteStub(RemoteRef) constructor.

    Sets the remote reference inside the remote stub.