[jboss-dev-forums] [Design the new POJO MicroContainer] - Module.getModuleForClassLoader()
kabir.khan@jboss.com
do-not-reply at jboss.com
Tue Jan 20 08:08:59 EST 2009
Similar to the getModuleForClass() from JBCL-78
discussed here http://www.jboss.com/index.html?module=bb&op=viewtopic&t=143639&postdays=0&postorder=asc&start=30
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#4203244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203244
More information about the jboss-dev-forums
mailing list