Modifier and Type | Class and Description |
---|---|
private static class | Introspector.
A simple introspector that uses reflection to analyze a class and identify its "getter" methods. |
Modifier and Type | Field and Description |
---|---|
public static final boolean |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static Object | |
public static void | |
public static Descriptor | |
public static Descriptor | |
public static Object | |
private static boolean | |
private static <T> Class | findMBeanInterface(Class<T> aClass, String aName)
Try to find the MBean interface corresponding to the class aName - i.e. aNameMBean, from within aClass and its superclasses. |
private static <M> MBeanInfo | |
public static Class | Returns: The MBean interface implemented by the MBean. Returnnull if the MBean is a DynamicMBean,
or if no MBean interface is found.The class to be tested. baseClass)Get the MBean interface implemented by a JMX Standard MBean class. |
public static <T> Class | Returns: The MXBean interface implemented by the MXBean.The class to be tested. baseClass)Get the MXBean interface implemented by a JMX MXBean class. |
public static <T> Class | Returns: The MBean interface implemented by the Standard MBean.The class to be tested. baseClass)Get the MBean interface implemented by a JMX Standard MBean class. |
private static <T> Class | implementsMBean(Class<T>
The interface to be tested c, String The name of the class implementing this interface clName)Returns the XXMBean interface or null if no such interface exists |
public static final boolean | |
public static <T> DynamicMBean | |
public static MBeanInfo | testCompliance(Class<?>
The class to be tested baseClass)Basic method for testing if a given class is a JMX compliant MBean. |
public static synchronized MBeanInfo | Returns: the computedjavax. .The class to be tested. baseClass, Class<?> the MBean interface that the class implements,
or null if the interface must be determined by introspection. mbeanInterface)Basic method for testing if a given class is a JMX compliant Standard MBean. |
public static void | testComplianceMBeanInterface(Class<?>
An interface class to test for the MBean compliance interfaceClass)Tests the given interface class for being a compliant MBean interface. |
public static void | testComplianceMXBeanInterface(Class<?>
An interface class to test for the MXBean compliance interfaceClass)Tests the given interface class for being a compliant MXBean interface. |
public static void | testCreation(Class<?>
The class of the MBean we want to create. c)Basic method for testing that a MBean of a given class can be instantiated by the MBean server. |
pack-priv static NotCompliantMBeanException | Returns: nothing - this method always throw an exception. The return type makes it possible to writethrow throwException(clazz,cause); the class which was under examination notCompliant, Throwable the reason why NotCompliantMBeanException should
be thrown. cause)Throws a NotCompliantMBeanException or a SecurityException. |
ALLOW_NONPUBLIC_MBEAN | back to summary |
---|---|
public static final boolean ALLOW_NONPUBLIC_MBEAN |
Introspector | back to summary |
---|---|
private Introspector() |
annotationToField | back to summary |
---|---|
private static Object annotationToField(Object x) |
checkCompliance | back to summary |
---|---|
public static void checkCompliance(Class<?> mbeanClass) throws NotCompliantMBeanException |
descriptorForAnnotations | back to summary |
---|---|
public static Descriptor descriptorForAnnotations(Annotation[] annots) |
descriptorForElement | back to summary |
---|---|
public static Descriptor descriptorForElement(final AnnotatedElement elmt) |
elementFromComplex | back to summary |
---|---|
public static Object elementFromComplex(Object complex, String element) throws AttributeNotFoundException |
equals | back to summary |
---|---|
private static boolean equals(Object x, Object y) |
findMBeanInterface | back to summary |
---|---|
private static <T> Class Try to find the MBean interface corresponding to the class aName - i.e. aNameMBean, from within aClass and its superclasses. |
getClassMBeanInfo | back to summary |
---|---|
private static <M> MBeanInfo getClassMBeanInfo(MBeanIntrospector<M> introspector, Class<?> baseClass, Class<?> mbeanInterface) throws NotCompliantMBeanException |
getMBeanInterface | back to summary |
---|---|
public static Class Get the MBean interface implemented by a JMX Standard MBean class. This method is only called by the legacy code in "com.sun.management.jmx". |
getMXBeanInterface | back to summary |
---|---|
public static <T> Class Get the MXBean interface implemented by a JMX MXBean class.
|
getStandardMBeanInterface | back to summary |
---|---|
public static <T> Class Get the MBean interface implemented by a JMX Standard MBean class.
|
implementsMBean | back to summary |
---|---|
private static <T> Class Returns the XXMBean interface or null if no such interface exists |
isDynamic | back to summary |
---|---|
public static final boolean isDynamic(final Class<?> c) Tell whether a MBean of the given class is a Dynamic MBean. This method does nothing more than returning javax.management.DynamicMBean.class.isAssignableFrom(c)This method does not check for any JMX MBean compliance:
|
makeDynamicMBean | back to summary |
---|---|
public static <T> DynamicMBean makeDynamicMBean(T mbean) throws NotCompliantMBeanException |
testCompliance | back to summary |
---|---|
public static MBeanInfo testCompliance(Class<?> baseClass) throws NotCompliantMBeanException Basic method for testing if a given class is a JMX compliant MBean.
|
testCompliance | back to summary |
---|---|
public static synchronized MBeanInfo testCompliance(final Class<?> baseClass, Class<?> mbeanInterface) throws NotCompliantMBeanException Basic method for testing if a given class is a JMX compliant Standard MBean. This method is only called by the legacy code in com.sun.management.jmx.
|
testComplianceMBeanInterface | back to summary |
---|---|
public static void testComplianceMBeanInterface(Class<?> interfaceClass) throws NotCompliantMBeanException Tests the given interface class for being a compliant MBean interface.
A compliant MBean interface is any publicly accessible interface
following the
|
testComplianceMXBeanInterface | back to summary |
---|---|
public static void testComplianceMXBeanInterface(Class<?> interfaceClass) throws NotCompliantMBeanException Tests the given interface class for being a compliant MXBean interface.
A compliant MXBean interface is any publicly accessible interface
following the
|
testCreation | back to summary |
---|---|
public static void testCreation(Class<?> c) throws NotCompliantMBeanException Basic method for testing that a MBean of a given class can be instantiated by the MBean server. This method checks that:
|
throwException | back to summary |
---|---|
pack-priv static NotCompliantMBeanException throwException(Class<?> notCompliant, Throwable cause) throws NotCompliantMBeanException, SecurityException Throws a NotCompliantMBeanException or a SecurityException.
|
Modifier and Type | Field and Description |
---|---|
private static final Map | |
private static final String | |
private static final String |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static List | getCachedMethods(Class<?> clazz)
Returns the list of methods cached for the given class, or |
pack-priv static Method | getReadMethod(Class<?> clazz, String property)
Returns the "getter" to read the given property from the given class or
|
pack-priv static List | |
pack-priv static boolean | isReadMethod(Method method)
Returns |
cache | back to summary |
---|---|
private static final Map<Class<?>, SoftReference<List<Method>>> cache |
GET_METHOD_PREFIX | back to summary |
---|---|
private static final String GET_METHOD_PREFIX |
IS_METHOD_PREFIX | back to summary |
---|---|
private static final String IS_METHOD_PREFIX |
SimpleIntrospector | back to summary |
---|---|
private SimpleIntrospector() |
getCachedMethods | back to summary |
---|---|
private static List Returns the list of methods cached for the given class, or |
getReadMethod | back to summary |
---|---|
pack-priv static Method getReadMethod(Class<?> clazz, String property) Returns the "getter" to read the given property from the given class or
|
getReadMethods | back to summary |
---|---|
pack-priv static List Returns the list of "getter" methods for the given class. The list is ordered so that isXXX methods appear before getXXX methods - this is for compatibility with the JavaBeans Introspector. |
isReadMethod | back to summary |
---|---|
pack-priv static boolean isReadMethod(Method method) Returns |