public static synchronized MBeanInfo testCompliance(final Class<?> baseClass,Class<?> mbeanInterface) throws NotCompliantMBeanException {
  if (mbeanInterface == null)   mbeanInterface=getStandardMBeanInterface(baseClass);
  ReflectUtil.checkPackageAccess(mbeanInterface);
  MBeanIntrospector<?> introspector=StandardMBeanIntrospector.getInstance();
  return getClassMBeanInfo(introspector,baseClass,mbeanInterface);
}

public static synchronized MBeanInfo testCompliance ( final Class < ? > baseClass , Class < ? > mbeanInterface ) throws NotCompliantMBeanException { if ( mbeanInterface == null ) mbeanInterface = getStandardMBeanInterface ( baseClass ) ; ReflectUtil . checkPackageAccess ( mbeanInterface ) ; MBeanIntrospector < ? > introspector = StandardMBeanIntrospector . getInstance ( ) ; return getClassMBeanInfo ( introspector , baseClass , mbeanInterface ) ; }
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 .
