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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 1.2.0
    • core-svc
    • b43
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: