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

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Sep 3 17:07:09 EDT 2007


I've now had a look at the new aop classloading tests, and see the problem you have been describing.

So, the problem we have with the failing test is that it is trying to create the interceptor twice. This is what we solved before with the ScopedJBossClassPool/ScopedClassLoaderDomain. To summarize what you have probably said already with my own words, with the new classloaders, we don't really have scoped classloaders in this case. So the check to see if the classloader is scoped to create a new domain does not really work here... I see what you have done, which is basically to make sure that the correct classloader is used, however we are not really limiting what is available.

What is needed is maybe ***something along the lines of***  setting the classloader on the advicebindings (and other things) + a AdviceBinding.isVisble(ClassLoader) type method or something like that. I'll look more into this in the morning and hopefully come up with some better ideas :-)



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

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



More information about the jboss-dev-forums mailing list