1. /*
  2. * @(#)RemoteStub.java 1.17 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi.server;
  11. /**
  12. * The <code>RemoteStub</code> class is the common superclass to client
  13. * stubs and provides the framework to support a wide range of remote
  14. * reference semantics. Stub objects are surrogates that support
  15. * exactly the same set of remote interfaces defined by the actual
  16. * implementation of the remote object.
  17. *
  18. * @version 1.17, 02/02/00
  19. * @author Ann Wollrath
  20. * @since JDK1.1
  21. */
  22. abstract public class RemoteStub extends RemoteObject {
  23. /** indicate compatibility with JDK 1.1.x version of class */
  24. private static final long serialVersionUID = -1585587260594494182L;
  25. /**
  26. * Constructs a <code>RemoteStub</code>.
  27. */
  28. protected RemoteStub() {
  29. super();
  30. }
  31. /**
  32. * Constructs a <code>RemoteStub</code>, with the specified remote
  33. * reference.
  34. *
  35. * @param ref the remote reference
  36. * @since JDK1.1
  37. */
  38. protected RemoteStub(RemoteRef ref) {
  39. super(ref);
  40. }
  41. /**
  42. * Sets the remote reference inside the remote stub.
  43. *
  44. * @param stub the remote stub
  45. * @param ref the remote reference
  46. * @since JDK1.1
  47. * @deprecated no replacement. The <code>setRef</code> method
  48. * is not needed since <code>RemoteStub</code>s can be created with
  49. * the <code>RemoteStub(RemoteRef)</code> constructor.
  50. */
  51. protected static void setRef(RemoteStub stub, RemoteRef ref) {
  52. throw new UnsupportedOperationException();
  53. }
  54. }