Friday, 15 February 2013

java - Caching internal bean calls -



java - Caching internal bean calls -

i have similar problem described in thread: http://forum.spring.io/forum/attic/spring-modules/22590-can-t-cache-result-of-inner-method-call

but don't decompose bean in chain caching. in case need create chain of 3 false beans caching!

i understand caching proxy delegates calls original bean, inner calls cannot intercepted. understand in case of java config -- i've created bean 'new' keyword. why got same behavior on xml config? expect spring can extend class constructors , create instance of new class. inner calls go through caching layer due polymorphism.

is there way forcefulness inheritance not delegation original bean?

thanks, alexey

i've found chapter in reference. says "spring aop proxy-based." there way access reference real proxy: aopcontext.currentproxy()) phone call instead of "this" bean.

java spring caching

No comments:

Post a Comment