With the new classloaders, how do I add a URL to the classloader? i.e. something similar
to the old:
| private URL createURLAndAddToLoader(ClassLoader cl, File tempdir) throws
IOException
| {
| URL tmpURL = tempdir.toURL();
| URL tmpCP = new URL(tmpURL, "?dynamic=true");
|
| RepositoryClassLoader ucl = (RepositoryClassLoader) cl;
|
| // We may be undeploying.
| if (ucl.getLoaderRepository() != null)
| {
| ucl.addURL(tmpCP);
| }
|
| return tmpCP;
| }
|
|
Thinking about it, this probably looks somewhat dangerous, but I still think I need to be
able to do something similar...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090802#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...