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 Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Supplier<CacheManager>protected Supplier<CacheResolver>protected AnnotationAttributesprotected Supplier<CacheErrorHandler>protected Supplier<KeyGenerator> -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
AbstractCachingConfiguration
public AbstractCachingConfiguration()
-
-
Method Details
-
setImportMetadata
Description copied from interface:ImportAwareSet the annotation metadata of the importing @Configurationclass.- Specified by:
setImportMetadatain interfaceImportAware
-
useCachingConfigurer
protected void useCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier) Extract the configuration from the nominatedCachingConfigurer.
-