Example usage for org.springframework.cache.jcache.interceptor CacheResultInterceptor CacheResultInterceptor

List of usage examples for org.springframework.cache.jcache.interceptor CacheResultInterceptor CacheResultInterceptor

Introduction

In this page you can find the example usage for org.springframework.cache.jcache.interceptor CacheResultInterceptor CacheResultInterceptor.

Prototype

public CacheResultInterceptor(CacheErrorHandler errorHandler) 

Source Link

Usage

From source file:org.springframework.cache.jcache.interceptor.JCacheAspectSupport.java

public void afterPropertiesSet() {
    Assert.state(getCacheOperationSource() != null, "The 'cacheOperationSource' property is required: "
            + "If there are no cacheable methods, then don't use a cache aspect.");

    this.cacheResultInterceptor = new CacheResultInterceptor(getErrorHandler());
    this.cachePutInterceptor = new CachePutInterceptor(getErrorHandler());
    this.cacheRemoveEntryInterceptor = new CacheRemoveEntryInterceptor(getErrorHandler());
    this.cacheRemoveAllInterceptor = new CacheRemoveAllInterceptor(getErrorHandler());

    this.initialized = true;
}