home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / RemoteStub.java < prev    next >
Text File  |  1998-09-22  |  1KB  |  43 lines

  1. /*
  2.  * @(#)RemoteStub.java    1.8 98/07/01
  3.  *
  4.  * Copyright 1995-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.      * Constructor for RemoteStub.
  26.      */
  27.     protected RemoteStub() {
  28.         super();
  29.     }
  30.     
  31.     /**
  32.      * Constructor for RemoteStub, with the specified remote reference.
  33.      */
  34.     protected RemoteStub(RemoteRef ref) {
  35.     super(ref);
  36.     }
  37.  
  38.     static protected void setRef(RemoteStub stub, RemoteRef ref)
  39.     {
  40.     stub.ref = ref;
  41.     }
  42. }
  43.