public class JCacheConfigurerSupport extends CachingConfigurerSupport implements JCacheConfigurer
CachingConfigurerSupport
that also implements
JCacheConfigurer
.
Users of JSR-107 annotations may extend from this class rather than
implementing from JCacheConfigurer
directly.
JCacheConfigurer
,
CachingConfigurerSupport
Constructor and Description |
---|
JCacheConfigurerSupport() |
Modifier and Type | Method and Description |
---|---|
CacheResolver |
exceptionCacheResolver()
Return the
CacheResolver bean to use to resolve exception caches for
annotation-driven cache management. |
cacheManager, cacheResolver, errorHandler, keyGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cacheManager, cacheResolver, errorHandler, keyGenerator
public CacheResolver exceptionCacheResolver()
JCacheConfigurer
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 extends JCacheConfigurerSupport { @Bean // important! @Override public CacheResolver exceptionCacheResolver() { // configure and return CacheResolver instance } // ... }See
EnableCaching
for more complete examples.exceptionCacheResolver
in interface JCacheConfigurer