This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This RFE has been logged as a reply to Gregg Wonderly custom JMX wizard. http://www.artima.com/weblogs/viewpost.jsp?thread=175214 The main features : - Derive attributes from fields - Allow customization of attribute names - Associate Attribute_Change notifications to setter - Generate an "internal" setter for Read Only attributes. - Construct your MBean in an incremental way (select existing field or method and expose it) - Automatic naming of MBean - It seems that having to wrap existing classes without being able to modify them is not the single requirement. In the current wizard we tried to isolate the wrapped class from the management stuff. In some cases it can be useful to have a single java class having Management interface + agent layer (Naming/registration) + business facets. Attached files show it all. The code is more coupled and complex but seems simpler to handle as a black box. - It seems that the Notification emitter Standard MBean generated could be simplified by using the Java 6 new JMX class StandardEmitterMBean (http://download.java.net/jdk6/docs/api/index.html?javax/management/StandardEmitterMBean.html) You should plan to use this class too.
Created attachment 33805 [details] The multi facets class Management/Agent and business
Created attachment 33806
Created attachment 33807 [details] Generated business interface
Created attachment 33808 [details] Utility class to handle registration
Created attachment 33809 [details] The StandardMBean wrapping BreakTest class. Generic class