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

Provide a convenient method in JConsolePlugin for adding listener

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      JConsole supports connect/disconnect/reconnect cycle. Most plugins would likely want to be notified for the connection state property change to deal with the disconnect/reconnect situation.

      Currently the plugin would have to override the setContext() method with the following:
         super.setContext(context);
         context.addPropertyChangeListener(listener);

      For any plugin which wants to register a listener has to do the same as above.

      So having JConsolePlugin to implement PropertyChangeListener will improve the API.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: