Class CacheInterceptor

All Implemented Interfaces:
Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton

public class CacheInterceptor extends CacheAspectSupport implements org.aopalliance.intercept.MethodInterceptor, Serializable
AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (Cache).

Derives from the CacheAspectSupport class which contains the integration with Spring's underlying caching API. CacheInterceptor simply calls the relevant superclass methods in the correct order.

CacheInterceptors are thread-safe.

Since:
3.1
Author:
Costin Leau, Juergen Hoeller, Sebastien Deleuze
See Also:
  • Constructor Details

    • CacheInterceptor

      public CacheInterceptor()
  • Method Details

    • invoke

      @Nullable public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable