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

Remove name from @ManagedAttribute

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
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: