Class CachingConfigurerSupport
java.lang.Object
org.springframework.cache.annotation.CachingConfigurerSupport
- All Implemented Interfaces:
CachingConfigurer
- Direct Known Subclasses:
JCacheConfigurerSupport
@Deprecated(since="6.0")
public class CachingConfigurerSupport
extends Object
implements CachingConfigurer
Deprecated.
An implementation of
CachingConfigurer with empty methods allowing
subclasses to override only the methods they're interested in.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the cache manager bean to use for annotation-driven cache management.Deprecated.Return theCacheResolverbean to use to resolve regular caches for annotation-driven cache management.Deprecated.Return theCacheErrorHandlerto use to handle cache-related errors.Deprecated.Return the key generator bean to use for annotation-driven cache management.
-
Constructor Details
-
CachingConfigurerSupport
public CachingConfigurerSupport()Deprecated.
-
-
Method Details
-
cacheManager
Deprecated.Description copied from interface:CachingConfigurerReturn the cache manager bean to use for annotation-driven cache management. A defaultCacheResolverwill be initialized behind the scenes with this cache manager. For more fine-grained management of the cache resolution, consider setting theCacheResolverdirectly.Implementations must explicitly declare
@Beanso that the cache manager participates in the lifecycle of the context, for example,@Configuration @EnableCaching class AppConfig implements CachingConfigurer { @Bean // important! @Override CacheManager cacheManager() { // configure and return CacheManager instance } // ... }See @EnableCachingfor more complete examples.- Specified by:
cacheManagerin interfaceCachingConfigurer
-
cacheResolver
Deprecated.Description copied from interface:CachingConfigurerReturn theCacheResolverbean to use to resolve regular caches for annotation-driven cache management. This is an alternative and more powerful option of specifying theCacheManagerto use.If both a
CachingConfigurer.cacheManager()andcacheResolver()are set, the cache manager is ignored.Implementations must explicitly declare
@Beanso that the cache resolver participates in the lifecycle of the context, for example,@Configuration @EnableCaching class AppConfig implements CachingConfigurer { @Bean // important! @Override CacheResolver cacheResolver() { // configure and return CacheResolver instance } // ... }SeeEnableCachingfor more complete examples.- Specified by:
cacheResolverin interfaceCachingConfigurer
-
keyGenerator
Deprecated.Description copied from interface:CachingConfigurerReturn the key generator bean to use for annotation-driven cache management.By default,
SimpleKeyGeneratoris used. See @EnableCachingfor more complete examples.- Specified by:
keyGeneratorin interfaceCachingConfigurer
-
errorHandler
Deprecated.Description copied from interface:CachingConfigurerReturn theCacheErrorHandlerto use to handle cache-related errors.By default,
SimpleCacheErrorHandleris used, which throws the exception back at the client. See @EnableCachingfor more complete examples.- Specified by:
errorHandlerin interfaceCachingConfigurer
-
CachingConfigurerdirectly