java.rmi.server
Class RemoteStub

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteStub
All Implemented Interfaces:
Serializable, Remote
Direct Known Subclasses:
ActivationGroup_Stub

public abstract class RemoteStub
extends RemoteObject

This is a base class for the automatically generated RMI stubs.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected RemoteStub()
          Constructs the remote stub with no reference set.
protected RemoteStub(RemoteRef ref)
          Constructs the remote stub that uses given remote reference for the method invocations.
 
Method Summary
protected static void setRef(RemoteStub stub, RemoteRef ref)
          Deprecated.  
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteStub

protected RemoteStub()
Constructs the remote stub with no reference set.


RemoteStub

protected RemoteStub(RemoteRef ref)
Constructs the remote stub that uses given remote reference for the method invocations.

Parameters:
ref - the remote reference for the method invocation.
Method Detail

setRef

protected static void setRef(RemoteStub stub,
                             RemoteRef ref)
Deprecated. 

Sets the given remote reference for the given stub. This method is deprecated. Pass the stub remote reference to the RemoteStub constructor instead.