- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBean
public class MethodCachingInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBean
simple caching interceptor. we require a cacheName and cacheKeyGenerator. we
don't use AOP style configuration because we reuse the same classes (kernels)
in very different contexts. sometimes we want to cache, sometimes we don't.
therefore, use old-school ProxyFactoryBean with this interceptor.
This turns out to be very slow - a lot of time is spent in AOP-type stuff.
This is due to the very high throughput when evaluating kernels.
- Author:
- vijay