1. /*
  2. * @(#)Operation.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi.server;
  8. /**
  9. * An <code>Operation</code> contains a description of a Java method.
  10. * <code>Operation</code> objects were used in JDK1.1 version stubs and
  11. * skeletons. The <code>Operation</code> class is not needed for JDK1.2 style
  12. * stubs (stubs generated with <code>rmic -v1.2</code>); hence, this class
  13. * is deprecated.
  14. *
  15. * @version 1.9, 11/29/01
  16. * @since JDK1.1
  17. * @deprecated no replacement
  18. */
  19. public class Operation {
  20. private String operation;
  21. /**
  22. * Creates a new Operation object.
  23. * @deprecated no replacement
  24. * @since JDK1.1
  25. */
  26. public Operation(String op) {
  27. operation = op;
  28. }
  29. /**
  30. * Returns the name of the method.
  31. * @deprecated no replacement
  32. * @since JDK1.1
  33. */
  34. public String getOperation() {
  35. return operation;
  36. }
  37. /**
  38. * Returns the string representation of the operation.
  39. * @deprecated no replacement
  40. * @since JDK1.1
  41. */
  42. public String toString() {
  43. return operation;
  44. }
  45. }