@Configuration public abstract class AbstractCachingConfiguration extends Object implements ImportAware
@Configuration class providing common structure
for enabling Spring's annotation-driven cache management capability.EnableCaching| Modifier and Type | Field and Description |
|---|---|
protected CacheManager |
cacheManager |
protected CacheResolver |
cacheResolver |
protected org.springframework.core.annotation.AnnotationAttributes |
enableCaching |
protected CacheErrorHandler |
errorHandler |
protected KeyGenerator |
keyGenerator |
| Constructor and Description |
|---|
AbstractCachingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
protected void |
useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominated
CachingConfigurer. |
protected org.springframework.core.annotation.AnnotationAttributes enableCaching
protected CacheManager cacheManager
protected CacheResolver cacheResolver
protected KeyGenerator keyGenerator
protected CacheErrorHandler errorHandler
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
ImportAwareConfiguration class.setImportMetadata in interface ImportAwareprotected void useCachingConfigurer(CachingConfigurer config)
CachingConfigurer.