[Design of AOP on JBoss (Aspects/JBoss)] - Re: Classloading problems with ClassProxyFactory
"kabir.khan(a)jboss.com" wrote :
| In this case the key is java.utl.ArrayList which will never be removed from the cache, but the proxy stored is created using the TCL, and thus never cleared out. I will create a simple test for this under aop and try generating the proxies with the classloader of the class being proxied instead.
I think this approach of using the source class CL is a good solution. This of course requires that the CL associated with the class can be modified (a common problem with custom CLs). An alternative approach would be to create a small child CL that is associated with the source class CL. This child CL would then only be used to generate proxies. This solves the isolation issues, and yet still allows for the generated proxies to be easily collected, and does not pollute the source CL.
I responded to your jboss-dev post about the bootstrap CL (basically saying its not possible). This can also be solved by using a special proxy CL, which is dedicated to source classes that are on the bootstrap classpath.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147958#4147958
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147958
15 years, 1 month