On 09 Sep 2015, at 21:26, Thierry Goubier <thierry.goubier@gmail.com> wrote:
Le 09/09/2015 21:00, Mariano Martinez Peck a écrit :
If you can live with only intercepting setters (not assigments) , then you can run some code AFTER loading the code, to install some method wrappers or Marea CompiledMethod proxy that intercept the execution of the setter method and do whatever you want. In the worst case you simply must re-run such script after reloading the code ....
You can also use Jejak to trace assignments with the same approach (i.e. to reinstall the probes after loading a new version), but you'll have to adapt one of the Jejak rewriter for that (or filter the generated events to retrieve only the ones relevant to your instance variable).
By the way, Marcus, how do Metalinks behave in this scenario (i.e. reloading a new version of the code). Are they lost?
Yes, re-applying links needs to be done by the user for now. I should add a framwork and example to make this easier. Marcus