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