On 10/09/2015 11:33 AM, Alex Buckley wrote:
On 10/9/2015 1:03 AM, Jaroslav Bachorik wrote:
Well, if anything the @CP annotation is related to
javax.management.openmbean package. All the OpenType and CompositeData
definitions are in this package. @CP annotation is used to influence the
way a CompositeData instance is reconstructed into an instance of the
mapped custom type.

OK, so if ConstructorProperties is more closely related to CompositeData than to MXBean per se, then put ConstructorProperties into javax.management.openmbean. The MXBean spec (i.e. the javadoc) is obviously completely dependent on that package already.


FWIW.  @ConstructorProperties is closely related to MXBean.

MXBean provides an easy way to define and implement your managed mbean using user-defined types and the MXBean framework converts those types into the public API and javax.management.openmbean types so that the client doesn't need the user-defined types to be present. In other words, MXBean removes the need to code in javax.management.openmbean.

Mandy

The desire for a new package seems misplaced to me, given how the real driver for a new package -- the draft JEP for MBean registration -- isn't going anywhere fast.

Alex

Reply via email to