Class JCacheConfigurerSupport
- java.lang.Object
- org.springframework.cache.annotation.CachingConfigurerSupport
- org.springframework.cache.jcache.config.JCacheConfigurerSupport
- All Implemented Interfaces:
CachingConfigurer,JCacheConfigurer
public class JCacheConfigurerSupport extends CachingConfigurerSupport implements JCacheConfigurer
An extension ofCachingConfigurerSupportthat also implementsJCacheConfigurer.Users of JSR-107 annotations may extend from this class rather than implementing from
JCacheConfigurerdirectly.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
JCacheConfigurer,CachingConfigurerSupport
Constructor Summary
Constructors Constructor Description JCacheConfigurerSupport()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheResolverexceptionCacheResolver()Return theCacheResolverbean to use to resolve exception caches for annotation-driven cache management.Methods inherited from class org.springframework.cache.annotation.CachingConfigurerSupport
cacheManager, cacheResolver, errorHandler, keyGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cache.annotation.CachingConfigurer
cacheManager, cacheResolver, errorHandler, keyGenerator
Constructor Detail
JCacheConfigurerSupport
public JCacheConfigurerSupport()
Method Detail
exceptionCacheResolver
@Nullable public CacheResolver exceptionCacheResolver()
Description copied from interface:JCacheConfigurerReturn theCacheResolverbean to use to resolve exception caches for annotation-driven cache management. Implementations must explicitly declare@Bean, e.g.@Configuration @EnableCaching public class AppConfig extends JCacheConfigurerSupport { @Bean // important! @Override public CacheResolver exceptionCacheResolver() { // configure and return CacheResolver instance } // ... }SeeEnableCachingfor more complete examples.- Specified by:
exceptionCacheResolverin interfaceJCacheConfigurer