1. /*
  2. * @(#)Operation.java 1.15 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. * 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 1.2 style
  12. * stubs (stubs generated with <code>rmic -v1.2</code>); hence, this class
  13. * is deprecated.
  14. *
  15. * @version 1.15, 01/23/03
  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. * @param op method name
  24. * @deprecated no replacement
  25. * @since JDK1.1
  26. */
  27. public Operation(String op) {
  28. operation = op;
  29. }
  30. /**
  31. * Returns the name of the method.
  32. * @return method name
  33. * @deprecated no replacement
  34. * @since JDK1.1
  35. */
  36. public String getOperation() {
  37. return operation;
  38. }
  39. /**
  40. * Returns the string representation of the operation.
  41. * @deprecated no replacement
  42. * @since JDK1.1
  43. */
  44. public String toString() {
  45. return operation;
  46. }
  47. }