Reloading operations in classpath

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
dcramer
Posts: 154
Joined: Sat Aug 28, 2010 1:23 am

Reloading operations in classpath

Post by dcramer » Sun Feb 13, 2011 2:14 am

Hi there,
Say I've written and compiled an AuthorOperation, associated it with an Action in Oxygen and tested it out. Then I modify the operation and recompile. Is there a way to reload the class to test the change without restarting Oxygen?

Thanks,
David

Radu
Posts: 6812
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reloading operations in classpath

Post by Radu » Mon Feb 14, 2011 11:45 am

Hi David,

From what it looks in the code the class loaders are reused by Author actions and once a class loader has loaded a library it will not react to any modifications in it.
You could try to close all Docbook files from Oxygen and then reopen them. Oxygen tries to de-alocate a class loader once it is not used anymore. But I'm not sure if this would work either.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

dcramer
Posts: 154
Joined: Sat Aug 28, 2010 1:23 am

Re: Reloading operations in classpath

Post by dcramer » Mon Feb 14, 2011 10:08 pm

As far as I can tell, quitting and restarting Oxygen is the only way to pick up a changed class (quitting the docs doesn't do it). It does seem to notice a newly added class however.

Thanks,
David

Post Reply