KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jmx > compliance > openmbean > OpenMBeanInfoSupportTestCase


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.test.jmx.compliance.openmbean;
23
24 import junit.framework.TestCase;
25
26 import java.io.ByteArrayInputStream JavaDoc;
27 import java.io.ByteArrayOutputStream JavaDoc;
28 import java.io.ObjectInputStream JavaDoc;
29 import java.io.ObjectOutputStream JavaDoc;
30 import java.util.Arrays JavaDoc;
31 import java.util.HashSet JavaDoc;
32 import java.util.Set JavaDoc;
33
34 import javax.management.MBeanOperationInfo JavaDoc;
35 import javax.management.MBeanParameterInfo JavaDoc;
36 import javax.management.MBeanNotificationInfo JavaDoc;
37 import javax.management.openmbean.OpenMBeanAttributeInfo JavaDoc;
38 import javax.management.openmbean.OpenMBeanAttributeInfoSupport JavaDoc;
39 import javax.management.openmbean.OpenMBeanConstructorInfo JavaDoc;
40 import javax.management.openmbean.OpenMBeanConstructorInfoSupport JavaDoc;
41 import javax.management.openmbean.OpenMBeanInfoSupport JavaDoc;
42 import javax.management.openmbean.OpenMBeanParameterInfo JavaDoc;
43 import javax.management.openmbean.OpenMBeanParameterInfoSupport JavaDoc;
44 import javax.management.openmbean.OpenMBeanOperationInfo JavaDoc;
45 import javax.management.openmbean.OpenMBeanOperationInfoSupport JavaDoc;
46 import javax.management.openmbean.OpenType JavaDoc;
47 import javax.management.openmbean.SimpleType JavaDoc;
48
49 /**
50  * Open MBean Info tests.<p>
51  *
52  * @author <a HREF="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
53  */

54 public class OpenMBeanInfoSupportTestCase
55   extends TestCase
56 {
57    // Static --------------------------------------------------------------------
58

59    // Attributes ----------------------------------------------------------------
60

61    // Constructor ---------------------------------------------------------------
62

63    /**
64     * Construct the test
65     */

66    public OpenMBeanInfoSupportTestCase(String JavaDoc s)
67    {
68       super(s);
69    }
70
71    // Tests ---------------------------------------------------------------------
72

73    public void testOpenMBeanInfoSupport()
74       throws Exception JavaDoc
75    {
76       OpenMBeanInfoSupport JavaDoc info = new OpenMBeanInfoSupport JavaDoc(
77          "name", "description", null, null, null, null);
78       assertEquals("name", info.getClassName());
79       assertEquals("description", info.getDescription());
80       assertEquals(0, info.getAttributes().length);
81       assertEquals(0, info.getConstructors().length);
82       assertEquals(0, info.getNotifications().length);
83       assertEquals(0, info.getOperations().length);
84
85       info = new OpenMBeanInfoSupport JavaDoc(
86          "name", "description", new OpenMBeanAttributeInfoSupport JavaDoc[0], new OpenMBeanConstructorInfoSupport JavaDoc[0],
87          new OpenMBeanOperationInfoSupport JavaDoc[0], new MBeanNotificationInfo JavaDoc[0]);
88       assertEquals("name", info.getClassName());
89       assertEquals("description", info.getDescription());
90       assertEquals(0, info.getAttributes().length);
91       assertEquals(0, info.getConstructors().length);
92       assertEquals(0, info.getNotifications().length);
93       assertEquals(0, info.getOperations().length);
94
95       OpenMBeanParameterInfoSupport JavaDoc[] parms = new OpenMBeanParameterInfoSupport JavaDoc[]
96       {
97          new OpenMBeanParameterInfoSupport JavaDoc(
98             "name", "description", SimpleType.STRING)
99       };
100
101       OpenMBeanAttributeInfoSupport JavaDoc[] attributes = new OpenMBeanAttributeInfoSupport JavaDoc[]
102       {
103          new OpenMBeanAttributeInfoSupport JavaDoc(
104          "name", "description", SimpleType.STRING, true, true, false)
105       };
106       OpenMBeanConstructorInfoSupport JavaDoc[] constructors = new OpenMBeanConstructorInfoSupport JavaDoc[]
107       {
108          new OpenMBeanConstructorInfoSupport JavaDoc(
109          "name", "description", parms)
110       };
111       OpenMBeanOperationInfoSupport JavaDoc[] operations = new OpenMBeanOperationInfoSupport JavaDoc[]
112       {
113          new OpenMBeanOperationInfoSupport JavaDoc(
114          "name", "description", parms,
115          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
116       };
117       MBeanNotificationInfo JavaDoc[] notifications = new MBeanNotificationInfo JavaDoc[]
118       {
119          new MBeanNotificationInfo JavaDoc(new String JavaDoc[] { "type1", "type" }, "name", "description")
120       };
121       info = new OpenMBeanInfoSupport JavaDoc(
122          "name", "description", attributes, constructors,
123          operations, notifications);
124       assertEquals("name", info.getClassName());
125       assertEquals("description", info.getDescription());
126       assertEquals(1, info.getAttributes().length);
127       assertEquals(1, info.getConstructors().length);
128       assertEquals(1, info.getNotifications().length);
129       assertEquals(1, info.getOperations().length);
130    }
131
132    public void testEquals()
133       throws Exception JavaDoc
134    {
135       OpenMBeanParameterInfoSupport JavaDoc[] parms = new OpenMBeanParameterInfoSupport JavaDoc[]
136       {
137          new OpenMBeanParameterInfoSupport JavaDoc(
138             "name", "description", SimpleType.STRING)
139       };
140
141       OpenMBeanAttributeInfoSupport JavaDoc[] attributes = new OpenMBeanAttributeInfoSupport JavaDoc[]
142       {
143          new OpenMBeanAttributeInfoSupport JavaDoc(
144          "name", "description", SimpleType.STRING, true, true, false)
145       };
146       OpenMBeanConstructorInfoSupport JavaDoc[] constructors = new OpenMBeanConstructorInfoSupport JavaDoc[]
147       {
148          new OpenMBeanConstructorInfoSupport JavaDoc(
149          "name", "description", parms)
150       };
151       OpenMBeanOperationInfoSupport JavaDoc[] operations = new OpenMBeanOperationInfoSupport JavaDoc[]
152       {
153          new OpenMBeanOperationInfoSupport JavaDoc(
154          "name", "description", parms,
155          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
156       };
157       MBeanNotificationInfo JavaDoc[] notifications = new MBeanNotificationInfo JavaDoc[]
158       {
159          new MBeanNotificationInfo JavaDoc(new String JavaDoc[] { "type1", "type" }, "name", "description")
160       };
161       OpenMBeanInfoSupport JavaDoc info = new OpenMBeanInfoSupport JavaDoc(
162          "name", "description", attributes, constructors,
163          operations, notifications);
164
165       assertTrue("Null is not equal to any instance", info.equals(null) == false);
166       assertTrue("Instance is only equal another OpenMBeanInfo instance", info.equals(new Object JavaDoc()) == false);
167       assertTrue("Instance should equal itself", info.equals(info));
168
169       OpenMBeanInfoSupport JavaDoc info2 = new OpenMBeanInfoSupport JavaDoc(
170          "name", "description", attributes, constructors,
171          operations, notifications);
172       assertTrue("Instances with same values should be equal", info.equals(info2));
173       assertTrue("Instances with same values should be equal", info2.equals(info));
174
175       info2 = new OpenMBeanInfoSupport JavaDoc(
176          "name2", "description", attributes, constructors,
177          operations, notifications);
178       assertTrue("Instances with different class names are not equal", info.equals(info2) == false);
179       assertTrue("Instances with different class names are not equal", info2.equals(info) == false);
180
181       info2 = new OpenMBeanInfoSupport JavaDoc(
182          "name", "description2", attributes, constructors,
183          operations, notifications);
184       assertTrue("Instances with different descriptions are equal", info.equals(info2));
185       assertTrue("Instances with different descriptions are equal", info2.equals(info));
186
187       OpenMBeanAttributeInfoSupport JavaDoc[] attributes2 = new OpenMBeanAttributeInfoSupport JavaDoc[]
188       {
189          new OpenMBeanAttributeInfoSupport JavaDoc(
190          "name2", "description", SimpleType.STRING, true, true, false)
191       };
192
193       info2 = new OpenMBeanInfoSupport JavaDoc(
194          "name", "description", attributes2, constructors,
195          operations, notifications);
196       assertTrue("Instances with different attributes are not equal", info.equals(info2) == false);
197       assertTrue("Instances with different attributes are not equal", info2.equals(info) == false);
198
199       attributes2 = new OpenMBeanAttributeInfoSupport JavaDoc[]
200       {
201          new OpenMBeanAttributeInfoSupport JavaDoc(
202          "name2", "description", SimpleType.STRING, true, true, false),
203          new OpenMBeanAttributeInfoSupport JavaDoc(
204          "name3", "description", SimpleType.STRING, true, true, false)
205       };
206
207       info2 = new OpenMBeanInfoSupport JavaDoc(
208          "name", "description", attributes2, constructors,
209          operations, notifications);
210       assertTrue("Instances with different numbers of attributes are not equal", info.equals(info2) == false);
211       assertTrue("Instances with different numbers of attributes are not equal", info2.equals(info) == false);
212
213       info2 = new OpenMBeanInfoSupport JavaDoc(
214          "name", "description", null, constructors,
215          operations, notifications);
216       assertTrue("Instances with and without attributes are not equal", info.equals(info2) == false);
217       assertTrue("Instances with and without attributes are not equal", info2.equals(info) == false);
218
219       OpenMBeanConstructorInfoSupport JavaDoc[] constructors2 = new OpenMBeanConstructorInfoSupport JavaDoc[]
220       {
221          new OpenMBeanConstructorInfoSupport JavaDoc(
222          "name2", "description", parms)
223       };
224
225       info2 = new OpenMBeanInfoSupport JavaDoc(
226          "name", "description", attributes, constructors2,
227          operations, notifications);
228       assertTrue("Instances with different constructors are not equal", info.equals(info2) == false);
229       assertTrue("Instances with different constructors are not equal", info2.equals(info) == false);
230
231       constructors2 = new OpenMBeanConstructorInfoSupport JavaDoc[]
232       {
233          new OpenMBeanConstructorInfoSupport JavaDoc(
234          "name2", "description", parms),
235          new OpenMBeanConstructorInfoSupport JavaDoc(
236          "name3", "description", parms)
237       };
238
239       info2 = new OpenMBeanInfoSupport JavaDoc(
240          "name", "description", attributes, constructors2,
241          operations, notifications);
242       assertTrue("Instances with different numbers of constructors are not equal", info.equals(info2) == false);
243       assertTrue("Instances with different numbers of constructors are not equal", info2.equals(info) == false);
244
245       info2 = new OpenMBeanInfoSupport JavaDoc(
246          "name", "description", attributes, null,
247          operations, notifications);
248       assertTrue("Instances with and without constructors are not equal", info.equals(info2) == false);
249       assertTrue("Instances with and without constructors are not equal", info2.equals(info) == false);
250
251       OpenMBeanOperationInfoSupport JavaDoc[] operations2 = new OpenMBeanOperationInfoSupport JavaDoc[]
252       {
253          new OpenMBeanOperationInfoSupport JavaDoc(
254          "name2", "description", parms,
255          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
256       };
257
258       info2 = new OpenMBeanInfoSupport JavaDoc(
259          "name", "description", attributes, constructors,
260          operations2, notifications);
261       assertTrue("Instances with different operations are not equal", info.equals(info2) == false);
262       assertTrue("Instances with different operations are not equal", info2.equals(info) == false);
263
264       operations2 = new OpenMBeanOperationInfoSupport JavaDoc[]
265       {
266          new OpenMBeanOperationInfoSupport JavaDoc(
267          "name2", "description", parms,
268          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO),
269          new OpenMBeanOperationInfoSupport JavaDoc(
270          "name3", "description", parms,
271          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
272       };
273
274       info2 = new OpenMBeanInfoSupport JavaDoc(
275          "name", "description", attributes, constructors,
276          operations2, notifications);
277       assertTrue("Instances with different numbers of operations are not equal", info.equals(info2) == false);
278       assertTrue("Instances with different numbers of operations are not equal", info2.equals(info) == false);
279
280       info2 = new OpenMBeanInfoSupport JavaDoc(
281          "name", "description", attributes, constructors,
282          null, notifications);
283       assertTrue("Instances with and without operations are not equal", info.equals(info2) == false);
284       assertTrue("Instances with and without operations are not equal", info2.equals(info) == false);
285
286       MBeanNotificationInfo JavaDoc[] notifications2 = new MBeanNotificationInfo JavaDoc[]
287       {
288          new MBeanNotificationInfo JavaDoc(new String JavaDoc[] { "type", "type" }, "name2", "description")
289       };
290
291       info2 = new OpenMBeanInfoSupport JavaDoc(
292          "name", "description", attributes, constructors,
293          operations, notifications2);
294       assertTrue("Instances with different notifications are not equal", info.equals(info2) == false);
295       assertTrue("Instances with different notifications are not equal", info2.equals(info) == false);
296
297       notifications2 = new MBeanNotificationInfo JavaDoc[]
298       {
299          new MBeanNotificationInfo JavaDoc(new String JavaDoc[] { "type", "type" }, "name2", "description"),
300          new MBeanNotificationInfo JavaDoc(new String JavaDoc[] { "type", "type" }, "name3", "description")
301       };
302
303       info2 = new OpenMBeanInfoSupport JavaDoc(
304          "name", "description", attributes, constructors,
305          operations, notifications2);
306       assertTrue("Instances with different numbers of notifications are not equal", info.equals(info2) == false);
307       assertTrue("Instances with different numbers of notifications are not equal", info2.equals(info) == false);
308
309       info2 = new OpenMBeanInfoSupport JavaDoc(
310          "name", "description", attributes, constructors,
311          operations, null);
312       assertTrue("Instances with and without notifications are not equal", info.equals(info2) == false);
313       assertTrue("Instances with and without notifications are not equal", info2.equals(info) == false);
314    }
315
316    public void testHashCode()
317       throws Exception JavaDoc
318    {
319       OpenMBeanParameterInfoSupport JavaDoc[] parms = new OpenMBeanParameterInfoSupport JavaDoc[]
320       {
321          new OpenMBeanParameterInfoSupport JavaDoc(
322             "name", "description", SimpleType.STRING)
323       };
324
325       OpenMBeanAttributeInfoSupport JavaDoc[] attributes = new OpenMBeanAttributeInfoSupport JavaDoc[]
326       {
327          new OpenMBeanAttributeInfoSupport JavaDoc(
328          "name", "description", SimpleType.STRING, true, true, false)
329       };
330       OpenMBeanConstructorInfoSupport JavaDoc[] constructors = new OpenMBeanConstructorInfoSupport JavaDoc[]
331       {
332          new OpenMBeanConstructorInfoSupport JavaDoc(
333          "name", "description", parms)
334       };
335       OpenMBeanOperationInfoSupport JavaDoc[] operations = new OpenMBeanOperationInfoSupport JavaDoc[]
336       {
337          new OpenMBeanOperationInfoSupport JavaDoc(
338          "name", "description", parms,
339          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
340       };
341       MBeanNotificationInfo JavaDoc[] notifications = new MBeanNotificationInfo JavaDoc[]
342       {
343          new MBeanNotificationInfo JavaDoc(
344          new String JavaDoc[] { "type1", "type" }, "name", "description")
345       };
346       OpenMBeanInfoSupport JavaDoc info = new OpenMBeanInfoSupport JavaDoc(
347          "name", "description", attributes, constructors,
348          operations, notifications);
349
350       int myHash = "name".hashCode() +
351                    new HashSet JavaDoc(Arrays.asList(attributes)).hashCode() +
352                    new HashSet JavaDoc(Arrays.asList(constructors)).hashCode() +
353                    new HashSet JavaDoc(Arrays.asList(operations)).hashCode() +
354                    new HashSet JavaDoc(Arrays.asList(notifications)).hashCode();
355       assertEquals(myHash, info.hashCode());
356    }
357
358    public void testToString()
359       throws Exception JavaDoc
360    {
361       OpenMBeanParameterInfoSupport JavaDoc[] parms = new OpenMBeanParameterInfoSupport JavaDoc[]
362       {
363          new OpenMBeanParameterInfoSupport JavaDoc(
364             "name", "description", SimpleType.STRING)
365       };
366
367       OpenMBeanAttributeInfoSupport JavaDoc[] attributes = new OpenMBeanAttributeInfoSupport JavaDoc[]
368       {
369          new OpenMBeanAttributeInfoSupport JavaDoc(
370          "name", "description", SimpleType.STRING, true, true, false)
371       };
372       OpenMBeanConstructorInfoSupport JavaDoc[] constructors = new OpenMBeanConstructorInfoSupport JavaDoc[]
373       {
374          new OpenMBeanConstructorInfoSupport JavaDoc(
375          "name", "description", parms)
376       };
377       OpenMBeanOperationInfoSupport JavaDoc[] operations = new OpenMBeanOperationInfoSupport JavaDoc[]
378       {
379          new OpenMBeanOperationInfoSupport JavaDoc(
380          "name", "description", parms,
381          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
382       };
383       MBeanNotificationInfo JavaDoc[] notifications = new MBeanNotificationInfo JavaDoc[]
384       {
385          new MBeanNotificationInfo JavaDoc(
386          new String JavaDoc[] { "type1", "type" }, "name", "description")
387       };
388       OpenMBeanInfoSupport JavaDoc info = new OpenMBeanInfoSupport JavaDoc(
389          "NAME", "DESCRIPTION", attributes, constructors,
390          operations, notifications);
391
392       String JavaDoc toString = info.toString();
393
394       assertTrue("info.toString() should contain the name",
395          toString.indexOf("NAME") != -1);
396       assertTrue("info.toString() should contain the attributes",
397          toString.indexOf(Arrays.asList(attributes).toString()) != -1);
398       assertTrue("info.toString() should contain the constructors",
399          toString.indexOf(Arrays.asList(constructors).toString()) != -1);
400       assertTrue("info.toString() should contain the operations",
401          toString.indexOf(Arrays.asList(operations).toString()) != -1);
402       assertTrue("info.toString() should contain the notifications",
403          toString.indexOf(Arrays.asList(notifications).toString()) != -1);
404    }
405
406    public void testSerialization()
407       throws Exception JavaDoc
408    {
409       OpenMBeanParameterInfoSupport JavaDoc[] parms = new OpenMBeanParameterInfoSupport JavaDoc[]
410       {
411          new OpenMBeanParameterInfoSupport JavaDoc(
412             "name", "description", SimpleType.STRING)
413       };
414
415       OpenMBeanAttributeInfoSupport JavaDoc[] attributes = new OpenMBeanAttributeInfoSupport JavaDoc[]
416       {
417          new OpenMBeanAttributeInfoSupport JavaDoc(
418          "name", "description", SimpleType.STRING, true, true, false)
419       };
420       OpenMBeanConstructorInfoSupport JavaDoc[] constructors = new OpenMBeanConstructorInfoSupport JavaDoc[]
421       {
422          new OpenMBeanConstructorInfoSupport JavaDoc(
423          "name", "description", parms)
424       };
425       OpenMBeanOperationInfoSupport JavaDoc[] operations = new OpenMBeanOperationInfoSupport JavaDoc[]
426       {
427          new OpenMBeanOperationInfoSupport JavaDoc(
428          "name", "description", parms,
429          SimpleType.STRING, MBeanOperationInfo.ACTION_INFO)
430       };
431       MBeanNotificationInfo JavaDoc[] notifications = new MBeanNotificationInfo JavaDoc[]
432       {
433          new MBeanNotificationInfo JavaDoc(
434          new String JavaDoc[] { "type1", "type" }, "name", "description")
435       };
436       OpenMBeanInfoSupport JavaDoc info = new OpenMBeanInfoSupport JavaDoc(
437          "name", "description", attributes, constructors,
438          operations, notifications);
439       // Serialize it
440
ByteArrayOutputStream JavaDoc baos = new ByteArrayOutputStream JavaDoc();
441       ObjectOutputStream JavaDoc oos = new ObjectOutputStream JavaDoc(baos);
442       oos.writeObject(info);
443     
444       // Deserialize it
445
ByteArrayInputStream JavaDoc bais = new ByteArrayInputStream JavaDoc(baos.toByteArray());
446       ObjectInputStream JavaDoc ois = new ObjectInputStream JavaDoc(bais);
447       OpenMBeanInfoSupport JavaDoc result = (OpenMBeanInfoSupport JavaDoc) ois.readObject();
448
449       assertEquals(info.getClassName(), result.getClassName());
450       assertEquals(Arrays.asList(info.getAttributes()), Arrays.asList(result.getAttributes()));
451       assertEquals(Arrays.asList(info.getConstructors()), Arrays.asList(result.getConstructors()));
452       assertEquals(Arrays.asList(info.getOperations()), Arrays.asList(result.getOperations()));
453
454       // UGLY!
455
MBeanNotificationInfo JavaDoc origNotification = info.getNotifications()[0];
456       MBeanNotificationInfo JavaDoc resultNotification = result.getNotifications()[0];
457       assertEquals(origNotification.getName(), resultNotification.getName());
458       assertEquals(origNotification.getDescription(), resultNotification.getDescription());
459       assertEquals(Arrays.asList(origNotification.getNotifTypes()), Arrays.asList(resultNotification.getNotifTypes()));
460    }
461
462    public void testErrors()
463       throws Exception JavaDoc
464    {
465       boolean caught = false;
466       try
467       {
468          MyOpenMBeanAttributeInfoSupport[] infos = new MyOpenMBeanAttributeInfoSupport[]
469          {
470             new MyOpenMBeanAttributeInfoSupport()
471          };
472          new OpenMBeanInfoSupport JavaDoc(
473             "className", "description", infos, null, null, null);
474       }
475       catch (ArrayStoreException JavaDoc e)
476       {
477          caught = true;
478       }
479       if (caught == false)
480          fail("Expected ArrayStoreException for attributes not MBeanAttributeInfo");
481
482       caught = false;
483       try
484       {
485          MyOpenMBeanConstructorInfoSupport[] infos = new MyOpenMBeanConstructorInfoSupport[]
486          {
487             new MyOpenMBeanConstructorInfoSupport()
488          };
489          new OpenMBeanInfoSupport JavaDoc(
490             "className", "description", null, infos, null, null);
491       }
492       catch (ArrayStoreException JavaDoc e)
493       {
494          caught = true;
495       }
496       if (caught == false)
497          fail("Expected ArrayStoreException for attributes not MBeanConstructorInfo");
498
499       caught = false;
500       try
501       {
502          MyOpenMBeanOperationInfoSupport[] infos = new MyOpenMBeanOperationInfoSupport[]
503          {
504             new MyOpenMBeanOperationInfoSupport()
505          };
506          new OpenMBeanInfoSupport JavaDoc(
507             "className", "description", null, null, infos, null);
508       }
509       catch (ArrayStoreException JavaDoc e)
510       {
511          caught = true;
512       }
513       if (caught == false)
514          fail("Expected ArrayStoreException for attributes not MBeanOperationInfo");
515    }
516
517    public static class MyOpenMBeanParameterInfo
518       implements OpenMBeanParameterInfo JavaDoc
519    {
520       public boolean equals(Object JavaDoc o) { return false; }
521       public Object JavaDoc getDefaultValue() { return null; }
522       public String JavaDoc getDescription() { return null; }
523       public Set JavaDoc getLegalValues() { return null; }
524       public Comparable JavaDoc getMaxValue() { return null; }
525       public Comparable JavaDoc getMinValue() { return null; }
526       public String JavaDoc getName() { return null; }
527       public OpenType JavaDoc getOpenType() { return null; }
528       public boolean hasDefaultValue() { return false; }
529       public boolean hasLegalValues() { return false; }
530       public int hashCode() { return 0; }
531       public boolean hasMaxValue() { return false; }
532       public boolean hasMinValue() { return false; }
533       public boolean isValue(Object JavaDoc o) { return false; }
534       public String JavaDoc toString() { return null; }
535    }
536
537    public static class MyOpenMBeanAttributeInfoSupport
538       extends MyOpenMBeanParameterInfo
539       implements OpenMBeanAttributeInfo JavaDoc
540    {
541       public boolean isIs() { return false; }
542       public boolean isReadable() { return false; }
543       public boolean isWritable() { return false; }
544    }
545
546    public static class MyOpenMBeanConstructorInfoSupport
547       implements OpenMBeanConstructorInfo JavaDoc
548    {
549       public boolean equals(Object JavaDoc o) { return false; }
550       public String JavaDoc getDescription() { return null; }
551       public String JavaDoc getName() { return null; }
552       public MBeanParameterInfo JavaDoc[] getSignature() { return null; }
553       public int hashCode() { return 0; }
554       public String JavaDoc toString() { return null; }
555    }
556
557    public static class MyOpenMBeanOperationInfoSupport
558       implements OpenMBeanOperationInfo JavaDoc
559    {
560       public boolean equals(Object JavaDoc o) { return false; }
561       public String JavaDoc getDescription() { return null; }
562       public int getImpact() { return 0; }
563       public String JavaDoc getName() { return null; }
564       public OpenType JavaDoc getReturnOpenType() { return null; }
565       public String JavaDoc getReturnType() { return null; }
566       public MBeanParameterInfo JavaDoc[] getSignature() { return null; }
567       public int hashCode() { return 0; }
568       public String JavaDoc toString() { return null; }
569    }
570 }
571
Popular Tags