"adrian(a)jboss.org" wrote :
| See BaseClassLoader.getClassLoaderForClass() for how it works
| without exposing nasty things. ;-)
|
You can do this
| public ClassLoader foo(ClassLoader cl) throws Exception
| {
| ClassLoader fcl = null;
| if (cl instanceof BaseClassLoader)
| {
| BaseClassLoader bcl = (BaseClassLoader)cl;
| fcl = bcl.findClassLoader("com.acme.FooBar");
| }
| return fcl;
| }
|
Intentional?
I guess it doesn't do any harm ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201412#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...