-
Bug
-
Resolution: Done
-
Minor
-
4.0.0.BETA1
-
None
ManagedAttribute's attribute name should be infered from either the instance variable name or the method name in order to avoid to confusion. Example:
@ManagedAttribute(name= "StatisticsEnabled" description = "Enables or disables the gathering of statistics by this component", writable = true)
private boolean statsEnabled = false;
ResourceDMBean resolves (correctly), the attribute name as StatsEnabled. So, to avoid confusion, remove name in @ManagedAttribute.
This also brings @ManagedAttribute a bit closer to the JMX 2.0 early draft API.