spring-framework / org.springframework.jmx.support / JmxUtils / isMBean

isMBean

open static fun isMBean(@Nullable clazz: Class<*>): Boolean

Determine whether the given bean class qualifies as an MBean as-is.

This implementation checks for javax.management.DynamicMBean classes as well as classes with corresponding "*MBean" interface (Standard MBeans) or corresponding "*MXBean" interface (Java 6 MXBeans).

Parameters

clazz - the bean class to analyze

Return
whether the class qualifies as an MBean

See Also
org.springframework.jmx.export.MBeanExporter#isMBean(Class)