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
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Nullable Supplier<CacheManager>
protected @Nullable Supplier<CacheResolver>
protected @Nullable AnnotationAttributes
protected @Nullable Supplier<CacheErrorHandler>
protected @Nullable Supplier<KeyGenerator>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setImportMetadata
(AnnotationMetadata importMetadata) Set the annotation metadata of the importing @Configuration
class.protected void
useCachingConfigurer
(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:ImportAware
Set the annotation metadata of the importing @Configuration
class.- Specified by:
setImportMetadata
in interfaceImportAware
-
useCachingConfigurer
protected void useCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier) Extract the configuration from the nominatedCachingConfigurer
.
-