Hi Grant,<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">An interesting article on classloading and modules.<br><br><a href="http://wiki.apidesign.org/wiki/ThreadContextClassLoader" target="_blank">http://wiki.apidesign.org/wiki/ThreadContextClassLoader</a><br>
</blockquote>
<br>So, this article would only be relevant if we deploy ImageJ via an OSGi framework, right?<br><br>I am wary of embracing the OSGi class loading mechanism, since I don't know many compelling reasons to do so in our case—bundle-level visibility is the only one I can think of
at the moment. In general, I think multiple class loaders are often unnecessary. Ultimately I would like to use the system class loader
as much as possible, rather than custom class loaders.<br><br>However, one big reason for multiple class loaders is to allow reloading of plugins on the fly, without restarting the JVM. My understanding is that this is the main reason ImageJ has a custom class loader (ij.io.PluginClassLoader).<br>
<br>Out of curiosity, does anyone here have experience using JarClassLoader (JCL)? On first glance it looks like it might be able to solve the class reloading issue.<br> <a href="http://jcloader.sourceforge.net/index.html">http://jcloader.sourceforge.net/index.html</a><br>
<br>-Curtis<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 8:55 AM, Grant B. Harris <span dir="ltr"><<a href="mailto:gharris@mbl.edu" target="_blank">gharris@mbl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
An interesting article on classloading and modules.<br>
<br>
<a href="http://wiki.apidesign.org/wiki/ThreadContextClassLoader" target="_blank">http://wiki.apidesign.org/wiki/ThreadContextClassLoader</a><br>
<br>
- Grant<br>
<br>
<br>
_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagejdev.org" target="_blank">ImageJ-devel@imagejdev.org</a><br>
<a href="http://imagejdev.org/mailman/listinfo/imagej-devel" target="_blank">http://imagejdev.org/mailman/listinfo/imagej-devel</a><br>
</blockquote></div><br>