1. /*
  2. * @(#)Operation.java 1.17 04/05/18
  3. *
  4. * Copyright 2004 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.17, 05/18/04
  16. * @since JDK1.1
  17. * @deprecated no replacement
  18. */
  19. @Deprecated
  20. public class Operation {
  21. private String operation;
  22. /**
  23. * Creates a new Operation object.
  24. * @param op method name
  25. * @deprecated no replacement
  26. * @since JDK1.1
  27. */
  28. @Deprecated
  29. public Operation(String op) {
  30. operation = op;
  31. }
  32. /**
  33. * Returns the name of the method.
  34. * @return method name
  35. * @deprecated no replacement
  36. * @since JDK1.1
  37. */
  38. @Deprecated
  39. public String getOperation() {
  40. return operation;
  41. }
  42. /**
  43. * Returns the string representation of the operation.
  44. * @deprecated no replacement
  45. * @since JDK1.1
  46. */
  47. @Deprecated
  48. public String toString() {
  49. return operation;
  50. }
  51. }