Page 1 of 1

Reloading operations in classpath

Posted: Sun Feb 13, 2011 2:14 am
by dcramer
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

Re: Reloading operations in classpath

Posted: Mon Feb 14, 2011 11:45 am
by Radu
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

Re: Reloading operations in classpath

Posted: Mon Feb 14, 2011 10:08 pm
by dcramer
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