Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0-rc2
-
Fix Version/s: None
-
Component/s: Engine
-
Labels:None
-
Number of attachments :
Description
Standard MBeans are not automatically recognised by the metaclass MBeanInfoBuilder.
Following patch adds the detection mechanism:
— MBeanInfoBuilder.java Wed Oct 6 19:06:52 2004
+++ MBeanInfoBuilder.java.patch2 Thu Oct 7 01:40:58 2004
@@ -124,6 +124,18 @@
buildTopic( attributes[ i ], classLoader );
infos.add( topic );
}
+
+ // check if the class has an MBean interface
+ final String mbeanName = type.getName()+"MBean";
+ Class[] apis = type.getInterfaces();
+ for( int i = 0; i < apis.length; i++ ) {
+ Class api = apis[i];
+ if(api.getName().equals(mbeanName))
+ }
}
/**