KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > server > Operation


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
8 package java.rmi.server;
9
10 /**
11  * An <code>Operation</code> contains a description of a Java method.
12  * <code>Operation</code> objects were used in JDK1.1 version stubs and
13  * skeletons. The <code>Operation</code> class is not needed for 1.2 style
14  * stubs (stubs generated with <code>rmic -v1.2</code>); hence, this class
15  * is deprecated.
16  *
17  * @version 1.17, 05/18/04
18  * @since JDK1.1
19  * @deprecated no replacement
20  */

21 @Deprecated JavaDoc
22 public class Operation {
23     private String JavaDoc operation;
24     
25     /**
26      * Creates a new Operation object.
27      * @param op method name
28      * @deprecated no replacement
29      * @since JDK1.1
30      */

31     @Deprecated JavaDoc
32     public Operation(String JavaDoc op) {
33     operation = op;
34     }
35     
36     /**
37      * Returns the name of the method.
38      * @return method name
39      * @deprecated no replacement
40      * @since JDK1.1
41      */

42     @Deprecated JavaDoc
43     public String JavaDoc getOperation() {
44     return operation;
45     }
46
47     /**
48      * Returns the string representation of the operation.
49      * @deprecated no replacement
50      * @since JDK1.1
51      */

52     @Deprecated JavaDoc
53     public String JavaDoc toString() {
54     return operation;
55     }
56 }
57
Popular Tags