[jboss-user] [JBoss Microcontainer] - Re: Custom ClassLoader

Ales Justin do-not-reply at jboss.com
Tue Mar 26 05:02:09 EDT 2013


Ales Justin [https://community.jboss.org/people/alesj] created the discussion

"Re: Custom ClassLoader"

To view the discussion, visit: https://community.jboss.org/message/804782#804782

--------------------------------------------------------------
classloader element takes explicit roots -- paths to jars, etc.
*  http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/metadata/VFSClassLoaderFactory.java http://anonsvn.jboss.org/repos/jbossas/projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/metadata/VFSClassLoaderFactory.java

Just create CustomCL bean -- no need for classloader element, and set this as classloader to other beans.

Having classloader per whole deployment (whole -beans.xml) is a bit trickier,
as it's chicken-n-egg problem.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/804782#804782]

Start a new discussion in JBoss Microcontainer at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130326/678e53b7/attachment-0001.html 


More information about the jboss-user mailing list