Permalink
Browse files

Incorporate the fix for making advisor caching reload aware.

  • Loading branch information...
1 parent 865ff03 commit e1193c1d6e3af2f03405b04ef02682cf0457c5a7 @ldaley committed Oct 20, 2010
@@ -38,6 +38,10 @@ class ClassLoaderPerProxyGroovyAwareAspectJAwareAdvisorAutoProxyCreator extends
proxy
}
+ protected Object getCacheKey(Class<?> beanClass, String beanName) {
+ beanClass.hashCode() + "_" + beanName
+ }
+
protected boolean shouldProxyTargetClass(Class<?> beanClass, String beanName) {
GroovyObject.class.isAssignableFrom(beanClass) || super.shouldProxyTargetClass(beanClass, beanName)
}
@@ -31,6 +31,10 @@ class ClassLoaderPerProxyGroovyAwareInfrastructureAdvisorAutoProxyCreator extend
super.setBeanClassLoader(classLoader)
}
+ protected Object getCacheKey(Class<?> beanClass, String beanName) {
+ beanClass.hashCode() + "_" + beanName
+ }
+
protected Object createProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource) {
setProxyClassLoader(new GrailsClassLoader(baseLoader, null, null))
def proxy = super.createProxy(beanClass, beanName, specificInterceptors, targetSource)

0 comments on commit e1193c1

Please sign in to comment.