[jboss-user] [Microcontainer] - Classloading docs?

emmartins do-not-reply at jboss.com
Mon Nov 10 13:19:54 EST 2008


Is there a doc regarding MC class loaders, similar to this one -> http://www.jboss.org/community/docs/DOC-10290 ?

We need to create class loaders for javassist generated classes, for jboss AS 4.x  it was like this:

UnifiedClassLoader ucl = (UnifiedClassLoader) Thread
                   .currentThread().getContextClassLoader();
           UnifiedLoaderRepository3 lr = (UnifiedLoaderRepository3) ucl
                   .getLoaderRepository();
           RepositoryClassLoader cl = lr.newClassLoader(
                   getTempClassDeploymentDir().toURL(), new File(
                           getUnitJarFile().getName()).toURL(), true);

Now the context class loader is a BaseClassLoader and looking at that object  through debug I don't find something similar as the "old" repository :-)

Thanks in advance,
Eduardo
Mobicents team

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188237#4188237

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188237



More information about the jboss-user mailing list