the idea os the classloader switching is to use the jvm one which is fast (David benched IIRC)
using the newInstance() method has 2 drawbacks: 1) in embedded mode it doesn't work (single big classpath) 2) we go through the SPI mecanism even if 8/10 times we know the result open to discuss further if you see some reason to not do this change *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/1/20 Jacek Laskowski <[email protected]> > On Sun, Jan 20, 2013 at 11:58 AM, <[email protected]> wrote: > > trying to force jvm one > > Why is this important? > > Jacek > > -- > Jacek Laskowski > Functional languages (Clojure), Java EE, and IBM WebSphere - > http://blog.japila.pl > "Never discourage anyone who continually makes progress, no matter how > slow." Plato >
