[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Reimplementing ClassPools for AS

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Dec 8 06:32:53 EST 2008


I am trying to replicate this with my tests, although the case that I am trying to do is probably not something that will happen in the real world (i.e. in AS)?

I am basically creating a URLClassLoader, and then registering a policy containing a scoped child domain as its child. I then cannot get hold of the parent URLClassLoader as mentioned.

In AS I also don't see any way to get hold of the parent classloader from the deployment units, although in AS I belive the following to be true.
*The default domain is fixed up to use the loader of BaseClassLoaderDomain as its parent, which in AS means the NoAnnotationURLClassLoader.
*Other domains will always be children of either the default domain or an intermediate domain.

So my test is probably a bit too ambitious?

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

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



More information about the jboss-dev-forums mailing list