[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP asintegration WITHOUT the integration :-)

adrian@jboss.org do-not-reply at jboss.com
Tue Aug 7 23:16:52 EDT 2007


So, once this change (use the correct classloader instead of guessing the TCL)
is done throughout AOP there will be no need for ScopedClassLoaderDomains
or any other integration code beyond the javassist ScopedClassPool.

With just the few changes I've done already, all the tests I've written pass
including the ones that have unexported classes and multiple versions
of the classes which are some of the more complicated OSGi use cases.

There's one caveat which is that to make the multiple version test work,
I had to make the interceptor PER_CLASS scope.

The notion of PER_VM needs redefining such that it takes into account
multiple versions of the advice in different classloaders, but it should have to
do complicated things like the ScopedClassLoaderDomain to do that.

The PER_VM advices should just indexed by the classloader of the advice class.

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

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



More information about the jboss-dev-forums mailing list