|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Class |
getMBeanInterface(Class baseClass)
Get the MBean interface implemented by a JMX standard MBean class. |
static boolean |
isDynamic(Class c)
Tell whether a MBean of the given class is a Dynamic MBean. |
static MBeanInfo |
testCompliance(Class baseClass)
Basic method for testing if a given class is a JMX compliant MBean. |
static void |
testCreation(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(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(Class c) throws NotCompliantMBeanException
This method checks that:
c
- The class of the MBean we want to create.
NotCompliantMBeanException
- if the MBean class makes it
impossible to instantiate the MBean from within the
MBeanServer.public static MBeanInfo testCompliance(Class baseClass) throws NotCompliantMBeanException
baseClass
- The class to be tested
null
if the MBean is a DynamicMBean,
the computed MBeanInfo
otherwise.
NotCompliantMBeanException
- The specified class is not a
JMX compliant MBeanpublic static Class getMBeanInterface(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 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |