vendredi 18 mars 2016

Is it possible to reflect on Components using VisualVM?

I want to create a custom plugin for VisualVM for use in production environments to examine the behavior of a Java app.

What I need is to get a hierarchy of the Java app's Components from SunAwtFrame down to JTextField, JButton, etc. If VisualVM could somehow provide me a reference to these Components I'd like to use reflection to allow me to read their properties, invoke their methods, and subscribe to their events. Then I could see how they behave in 'real-life' when I get the app into a particular state and interact with the code.

I've looked through the plugins available and worked through the tutorials on creating new plugins but i don't see this type of functionality available.

Anyone had any experience in getting something like this working (using VisualVM or any other tool)?





Aucun commentaire:

Enregistrer un commentaire