Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4786777

MBeanInfo could have way to mark attribute or operation as "disabled"

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 6
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      generic
    • OS:
      generic

      Description

      Rasmus Lund wrote:
      > What about providing extra info on attributes and operations telling if they
      > are enabled at the moment?
      >
      > E.g. imagine a MBean with the following:
      >
      > * Attribute: enablePooling (boolean)
      > * Attribute: poolSize (int)
      > * Attribute: debug (boolean)
      > * Attribute: debugLevel (int)
      > * Operation: refreshPool
      >
      > Now. If enablePooling is set to false, I would someone reading
      > poolSizeAttribute.isEnabled and refreshPoolOperation.isEnables to get false
      > as return value. Likewise if debug is set to false, they should read
      > debugLevelAttribute.isEabled to false.
      >
      > This would make the automatic generation of user interfaces based on
      > MBean-meta-info a lot easier.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emcmanus Eamonn McManus
                Reporter:
                emcmanus Eamonn McManus
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: