|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jdmk.Introspector
public class Introspector
This class contains the methods for performing all the tests needed to verify that a class represents a JMX compliant MBean.
Method Summary | |
---|---|
static java.lang.Class |
getMBeanInterface(java.lang.Class baseClass)
Get the MBean interface implemented by a JMX standard MBean class. |
static boolean |
isDynamic(java.lang.Class c)
Tell whether a MBean of the given class is a Dynamic MBean. |
static javax.management.MBeanInfo |
testCompliance(java.lang.Class baseClass)
Basic method for testing if a given class is a JMX compliant MBean. |
static void |
testCreation(java.lang.Class c)
Basic method for testing that a MBean of a given class can be instantiated by the MBean server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final boolean isDynamic(java.lang.Class c)
javax.management.DynamicMBean.class.isAssignableFrom(c)This method does not check for any JMX MBean compliance:
true
is returned, then instances of
c
are DynamicMBean.false
is returned, then no further
assumption can be made on instances of c
.
In particular, instances of c
may, or may not
be JMX standard MBeans.
c
- The class of the MBean under examination.
true
if instances of c
are
Dynamic MBeans, false
otherwise.public static void testCreation(java.lang.Class c) throws javax.management.NotCompliantMBeanException
This method checks that:
c
- The class of the MBean we want to create.
javax.management.NotCompliantMBeanException
- if the MBean class makes it
impossible to instantiate the MBean from within the
MBeanServer.public static javax.management.MBeanInfo testCompliance(java.lang.Class baseClass) throws javax.management.NotCompliantMBeanException
baseClass
- The class to be tested
null
if the MBean is a DynamicMBean,
the computed MBeanInfo
otherwise.
javax.management.NotCompliantMBeanException
- The specified class is not a
JMX compliant MBeanpublic static java.lang.Class getMBeanInterface(java.lang.Class baseClass)
baseClass
- The class to be tested
null
if the MBean is a DynamicMBean,
or if no MBean interface is found.
|
Open Source build 01-ea opendmk-1.0-b01-ea 2010.10.22_13:26:06_UTC |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |