01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management;
09:
10: import java.io.Serializable;
11:
12: /**
13: * Describes an argument of an operation exposed by an MBean.
14: *
15: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
16: */
17:
18: public class MBeanParameterInfo extends MBeanFeatureInfo implements
19: Serializable, Cloneable {
20:
21: /**
22: * The type or class name of the data.
23: */
24: private String type = null;
25:
26: /**
27: * Constructs a <CODE>MBeanParameterInfo</CODE> object.
28: *
29: * @param name The name of the data
30: * @param type The type or class name of the data
31: * @param description A human readable description of the data. Optional.
32: */
33: public MBeanParameterInfo(String name, String type,
34: String description) {
35:
36: super (name, description);
37: this .type = type;
38: this .description = description;
39: }
40:
41: public Object clone() {
42: try {
43: return super .clone();
44: } catch (CloneNotSupportedException clonenotsupportedexception) {
45: return null;
46: }
47: }
48:
49: /**
50: * Returns the type or class name of the data.
51: */
52: public String getType() {
53: return type;
54: }
55:
56: }
|