[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-190) Remove name from @ManagedAttribute
Galder Zamarreno (JIRA)
jira-events at lists.jboss.org
Wed Sep 9 11:15:24 EDT 2009
[ https://jira.jboss.org/jira/browse/ISPN-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreno resolved ISPN-190.
-----------------------------------
Resolution: Done
> Remove name from @ManagedAttribute
> ----------------------------------
>
> Key: ISPN-190
> URL: https://jira.jboss.org/jira/browse/ISPN-190
> Project: Infinispan
> Issue Type: Bug
> Components: JMX, reporting and management
> Affects Versions: 4.0.0.BETA1
> Reporter: Galder Zamarreno
> Assignee: Galder Zamarreno
> Priority: Minor
> Fix For: 4.0.0.CR1
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list