Top Description Constructors Methods
org.springframework.cache.jcache.config

public Class JCacheConfigurerSupport

extends CachingConfigurerSupport
implements JCacheConfigurer
Class Inheritance
All Implemented Interfaces
org.springframework.cache.jcache.config.JCacheConfigurer, org.springframework.cache.annotation.CachingConfigurer
Annotations
@Deprecated
since:6.0
Imports
org.springframework.cache.annotation.CachingConfigurerSupport, org.springframework.cache.interceptor.CacheResolver, org.springframework.lang.Nullable

Deprecated

since 6.0.

as of 6.0 in favor of implementing JCacheConfigurer directly

An extension of CachingConfigurerSupport that also implements JCacheConfigurer.

Users of JSR-107 annotations may extend from this class rather than implementing from JCacheConfigurer directly.

Author
Stephane Nicoll
Since
4.1
See Also
JCacheConfigurer, CachingConfigurerSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CacheResolver
exceptionCacheResolver()

Overrides default org.springframework.cache.jcache.config.JCacheConfigurer.exceptionCacheResolver.

Return the CacheResolver bean to use to resolve exception caches for annotation-driven cache management.

Inherited from org.springframework.cache.annotation.CachingConfigurerSupport:
cacheManagercacheResolvererrorHandlerkeyGenerator

Constructor Detail

JCacheConfigurerSupportback to summary
public JCacheConfigurerSupport()

Method Detail

exceptionCacheResolverback to summary
public CacheResolver exceptionCacheResolver()

Overrides default org.springframework.cache.jcache.config.JCacheConfigurer.exceptionCacheResolver.

Doc from org.springframework.cache.jcache.config.JCacheConfigurer.exceptionCacheResolver.

Return the CacheResolver bean to use to resolve exception caches for annotation-driven cache management. Implementations must explicitly declare @Bean, e.g.

@Configuration
@EnableCaching
public class AppConfig implements JCacheConfigurer {
    @Bean // important!
    @Override
    public CacheResolver exceptionCacheResolver() {
        // configure and return CacheResolver instance
    }
    // ...
}
See org.springframework.cache.annotation.EnableCaching for more complete examples.
Annotations
@Override
@Nullable