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, Juergen Hoeller
- See Also:
EnableCaching
Field Summary
Fields Modifier and Type Field Description protected Supplier<CacheManager>
cacheManager
protected Supplier<CacheResolver>
cacheResolver
protected AnnotationAttributes
enableCaching
protected Supplier<CacheErrorHandler>
errorHandler
protected Supplier<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
@Nullable protected AnnotationAttributes enableCaching
cacheManager
@Nullable protected Supplier<CacheManager> cacheManager
cacheResolver
@Nullable protected Supplier<CacheResolver> cacheResolver
keyGenerator
@Nullable protected Supplier<KeyGenerator> keyGenerator
errorHandler
@Nullable protected Supplier<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
.