Similar to the getModuleForClass() from JBCL-78
discussed here
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=143639&a...
I would like to add an additional method to Module:
| public Module getModuleForClassLoader(ClassLoader cl) throws
ClassNotFoundException
| {
| SecurityManager sm = System.getSecurityManager();
| if (sm != null)
| sm.checkPermission(new RuntimePermission("getClassLoader"));
|
| // Determine the module (if any) for the classloader
| if (cl != null)
| return modulesByClassLoader.get(cl);
| // Unknown
| return null;
| }
|
I need this to initialise my classpool domains with the bootstrap classloaders, since they
are not getting picked up by the AOPClassLoaderDeployer in AS.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203244#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...