[jboss-dev-forums] [Design of OSGi Integration] - Changing ClassLoader creation

alesj do-not-reply at jboss.com
Wed Feb 25 15:47:27 EST 2009


While using Runtime and its underlying framework
we need to use the ClassLoader created by underlying OSGi framework,
actually its Bundle instance that can mock ClassLoader.

We can do this by implementing ClassLoaderFactory
and adding it as an attachment.

But I see we cannot avoid the usage of
* ClassLoadingDefaultDeployer
* VFSClassLoaderClassPathDeployer
* VFSClassLoaderDescribeDeployer

I guess it's best if we add empty/non-exposing CLMD 
to attachments, when we use Runtime,
so that Module is not able to expose anything?



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

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



More information about the jboss-dev-forums mailing list