home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / rmi / server / RemoteStub.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.3 KB  |  48 lines

  1. /*
  2.  * @(#)RemoteStub.java    1.14 98/03/18
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14. package java.rmi.server;
  15.  
  16. /**
  17.  * The RemoteStub class is the common superclass to all client stubs
  18.  * and provides the framework to support a wide range of remote
  19.  * reference semantics.  Stub objects are surrogates that support
  20.  * exactly the same set of remote interfaces defined by the actual
  21.  * implementation of the remote object.
  22.  */
  23. abstract public class RemoteStub extends RemoteObject {
  24.     
  25.     /* indicate compatibility with JDK 1.1.x version of class */
  26.     private static final long serialVersionUID = -1585587260594494182L;
  27.     
  28.     /**
  29.      * Constructor for RemoteStub.
  30.      */
  31.     protected RemoteStub() {
  32.         super();
  33.     }
  34.     
  35.     /**
  36.      * Constructor for RemoteStub, with the specified remote reference.
  37.      */
  38.     protected RemoteStub(RemoteRef ref) {
  39.     super(ref);
  40.     }
  41.  
  42.     static protected void setRef(RemoteStub stub, RemoteRef ref)
  43.     {
  44.     stub.ref = ref;
  45.     }
  46.  
  47. }
  48.