Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ehcache annotation-driver versus declarative dependency injection #100

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

1. I have a class which has an @Cacheable method
2. In the same class i have dependency injections done by a spring declarative 
way
3. My spring configuration of ehcache annotation is :
<ehcache:annotation-driven cache-manager="global-cacheManager"  
proxy-target-class="true"/>
==> This is required as, without proxy-target-class="true", ehcache or Async 
annotations intercept my methods without keeping other aop interceptor I added 
on Spring


Process should "proxify" my class with @Cacheable capabilities then it should 
inject in this class my other dependencies
Instead of that, it injects my dependencies in an instance and final process 
uses another instance proxified by CGLIB.

Is there a way to solve this problem ?


Version of ehcache-spring-annotations : 1.2.0
Spring version : 3.1.0

I also posted a message on Spring forums :
http://forum.springsource.org/showthread.php?128929-Async-versus-RegexpMethodPoi
ntcutAdvisor&p=421016


Original issue reported on code.google.com by [email protected] on 3 Aug 2012 at 8:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant