[jboss-user] [JBoss Microcontainer Development] - Benchmarking classloaders

Kabir Khan do-not-reply at jboss.com
Thu Jul 22 15:11:49 EDT 2010


Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] replied to the discussion

"Benchmarking classloaders"

To view the discussion, visit: http://community.jboss.org/message/554012#554012

--------------------------------------------------------------
> Ales Justin wrote:
> 
> > Ales, can you take a look at how I am setting up the VFSClassLoaderFactories? 
> > 
> Should be fine.
> 
> So to get the tests straight.
> Why the three level hierarchy depth?
The three levels was inspired by David's stuff, as I understood it a load of one class triggers load of some others. It can certainly be made simpler though, so I can do a one-level set tomorrow.
> Ales Justin wrote:
> Who creates requirements and who provides the capabilities?
> Why the re-export on module and package?
The requirements and capabilities are set up in the individial tests. I'm  not sure about the re-export, is it needed when Impl (loaderA) loads its superclass AbstractImpl (loaderB) which in turn brings in its interface (loaderC)?
> > The thing I found strange was that for the Module test I had to specify the packages as a capability as well as the module, but I'm not that familiar with how this works so maybe that's how it should be.
> What happens if you don't do this?
I get an exception, IIRC NoClassDefFoundError when trying to load the superclass which comes from a loader that only exports the module and not also the packages. But maybe there is another setting to get around this?

--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100722/4fe402dc/attachment.html 


More information about the jboss-user mailing list