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: * Provides general information for an MBean descriptor object.
14: * The feature described can be an attribute, an operation, a parameter, a returned value or a notification.
15: *
16: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
17: */
18:
19: public class MBeanFeatureInfo implements Serializable {
20:
21: /**
22: * The name of the feature.
23: */
24: protected String name = null;
25:
26: /**
27: * The human readable description of the feature.
28: */
29: protected String description = null;
30:
31: /**
32: * Constructs an <CODE>MBeanFeatureInfo</CODE> object.
33: *
34: * @param name The name of the feature.
35: * @param description A human readable description of the feature.
36: */
37: public MBeanFeatureInfo(String name, String description) {
38: this .name = name;
39: this .description = description;
40: }
41:
42: /**
43: * Package-private duplicate constructor.
44: * <P>
45: * This must isolate the new object from any changes to the old object.
46: */
47: MBeanFeatureInfo(MBeanFeatureInfo old) {
48: name = old.name;
49: description = old.description;
50: }
51:
52: /**
53: * Returns the name of the feature.
54: */
55: public String getName() {
56: return name;
57: }
58:
59: /**
60: * Returns the human readable description of the feature.
61: */
62: public String getDescription() {
63: return description;
64: }
65:
66: }
|