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@Configurationclass 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>cacheManagerprotected Supplier<CacheResolver>cacheResolverprotected AnnotationAttributesenableCachingprotected Supplier<CacheErrorHandler>errorHandlerprotected Supplier<KeyGenerator>keyGenerator
Constructor Summary
Constructors Constructor Description AbstractCachingConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetImportMetadata(AnnotationMetadata importMetadata)Set the annotation metadata of the importing @Configurationclass.protected voiduseCachingConfigurer(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:ImportAwareSet the annotation metadata of the importing @Configurationclass.- Specified by:
setImportMetadatain interfaceImportAware
useCachingConfigurer
protected void useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer.