Class AbstractCachingConfiguration
- java.lang.Object
- org.springframework.cache.annotation.AbstractCachingConfiguration
- All Implemented Interfaces:
Aware
,ImportAware
- Direct Known Subclasses:
AbstractJCacheConfiguration
,AspectJCachingConfiguration
,ProxyCachingConfiguration
@Configuration public abstract class AbstractCachingConfiguration extends Object implements ImportAware
Abstract base@Configuration
class providing common structure for enabling Spring's annotation-driven cache management capability.- Since:
- 3.1
- Author:
- Chris Beams, Stephane Nicoll
- See Also:
EnableCaching
Field Summary
Fields Modifier and Type Field Description protected CacheManager
cacheManager
protected CacheResolver
cacheResolver
protected AnnotationAttributes
enableCaching
protected CacheErrorHandler
errorHandler
protected KeyGenerator
keyGenerator
Constructor Summary
Constructors Constructor Description AbstractCachingConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @Configuration
class.protected void
useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer
.
Field Detail
enableCaching
protected AnnotationAttributes enableCaching
cacheManager
protected CacheManager cacheManager
cacheResolver
protected CacheResolver cacheResolver
keyGenerator
protected KeyGenerator keyGenerator
errorHandler
protected CacheErrorHandler errorHandler
Constructor Detail
AbstractCachingConfiguration
public AbstractCachingConfiguration()
Method Detail
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
Description copied from interface:ImportAware
Set the annotation metadata of the importing @Configuration
class.- Specified by:
setImportMetadata
in interfaceImportAware
useCachingConfigurer
protected void useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer
.