Vincent, I had a quick look at the library and it seems a really nice piece of code if you accept the idea of reimplementing the whole jar logics. However, this classloader is really well designed to be extensible and it could be a good base for creating a dynamic extension. Their base implementation does the same as the virtual machine, since it cache all loaded jars and never refresh or clear the cache, but since their is room for extension, it is possible to go further with this one without the caveats of the native implementation.
Denis On Oct 3, 2009, at 14:01, Vincent Massol wrote: > Hi (especially Denis), > > I've just found an interesting library: Emory Utilities > > It has a URIClassLoader that fixes a lof of bugs from the JDK version > and will work for fixing my problem with the script macros. > > Doc: > http://dcl.mathcs.emory.edu/php/loadPage.php?content=util/features.html#classloading > Sources: > http://dcl.mathcs.emory.edu/bin/viewvc/software/harness2/trunk/util/src/edu/emory/mathcs/util/classloader/?pathrev=1594 > > Denis, could you have a look and check if it solves the problems you > have also solved with your implementation? From what I see it solves > most of the pb you have seen and a few others related to special chars > in URLs. I just want to be sure your version isn't fixing something > more this impl. is not fixing. > > I'll be trying to use it over the week end but I've already found a > way to make it work for my use case (even though these guys didn't > know about dependency injection at that time - it was back in > 2005...). > > Thanks > -Vincent > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

