Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-190

Remove name from @ManagedAttribute

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: