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.

Bug 84667 - Instrumenting existing class enhancements
Summary: Instrumenting existing class enhancements
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 5.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 09:49 UTC by Jean-francois Denise
Modified: 2006-09-12 09:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The multi facets class Management/Agent and business (11.31 KB, application/octet-stream)
2006-09-12 09:51 UTC, Jean-francois Denise
Details
Generated business interface (2.55 KB, application/octet-stream)
2006-09-12 09:52 UTC, Jean-francois Denise
Details
Utility class to handle registration (2.31 KB, application/octet-stream)
2006-09-12 09:53 UTC, Jean-francois Denise
Details
The StandardMBean wrapping BreakTest class. Generic class (11.55 KB, application/octet-stream)
2006-09-12 09:54 UTC, Jean-francois Denise
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-francois Denise 2006-09-12 09:49:03 UTC
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.
Comment 1 Jean-francois Denise 2006-09-12 09:51:34 UTC
Created attachment 33805 [details]
The multi facets class Management/Agent and business
Comment 2 Jean-francois Denise 2006-09-12 09:52:23 UTC
Created attachment 33806
Comment 3 Jean-francois Denise 2006-09-12 09:52:36 UTC
Created attachment 33807 [details]
Generated business interface
Comment 4 Jean-francois Denise 2006-09-12 09:53:26 UTC
Created attachment 33808 [details]
Utility class to handle registration
Comment 5 Jean-francois Denise 2006-09-12 09:54:06 UTC
Created attachment 33809 [details]
The StandardMBean wrapping BreakTest class. Generic class