Class AbstractCachingConfiguration
java.lang.Object
org.springframework.cache.annotation.AbstractCachingConfiguration
- All Implemented Interfaces:
- Aware, ImportAware
- Direct Known Subclasses:
- AbstractJCacheConfiguration, AspectJCachingConfiguration, ProxyCachingConfiguration
@Configuration(proxyBeanMethods=false)
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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Supplier<@Nullable CacheManager> protected Supplier<@Nullable CacheResolver> protected @Nullable AnnotationAttributesprotected Supplier<@Nullable CacheErrorHandler> protected Supplier<@Nullable KeyGenerator> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetImportMetadata(AnnotationMetadata importMetadata) Set the annotation metadata of the importing @Configurationclass.protected voiduseCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier) Extract the configuration from the nominatedCachingConfigurer.
- 
Field Details- 
enableCaching
- 
cacheManager
- 
cacheResolver
- 
keyGenerator
- 
errorHandler
 
- 
- 
Constructor Details- 
AbstractCachingConfigurationpublic AbstractCachingConfiguration()
 
- 
- 
Method Details- 
setImportMetadataDescription copied from interface:ImportAwareSet the annotation metadata of the importing @Configurationclass.- Specified by:
- setImportMetadatain interface- ImportAware
 
- 
useCachingConfigurerprotected void useCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier) Extract the configuration from the nominatedCachingConfigurer.
 
-