For anyone who is interested in using their own classloaders with BeanShell -
In 1.1a18 I have added a setClassLoader() method to Interpreter (and
It causes the BshClassManager to use the specified external class loader at
the point where it would otherwise use Class.forName() to load classes.
If additional classpath related commands are used bsh will still create
additional classloaders "on top of" that.
It should be noted that bsh is not currently able to map the supplied class
loader's space, so those classes cannot be reloaded or automatically imported.
Please let me know if you have comments on this... It seems like a
straightforward addition, but I am wary that there might be more subtle issues
Get latest updates about Open Source Projects, Conferences and News.