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

Provide a convenient method in JConsolePlugin for adding listener

XMLWordPrintable

    • b85
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: