类 AbstractCachingConfiguration
- java.lang.Object
- org.springframework.cache.annotation.AbstractCachingConfiguration
- 所有已实现的接口:
Aware
,ImportAware
@Configuration public abstract class AbstractCachingConfiguration extends Object implements ImportAware
Abstract base@Configuration
class providing common structure for enabling Spring's annotation-driven cache management capability.- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams, Stephane Nicoll
- 另请参阅:
EnableCaching
字段概要
字段 修饰符和类型 字段 说明 protected CacheManager
cacheManager
protected CacheResolver
cacheResolver
protected AnnotationAttributes
enableCaching
protected CacheErrorHandler
errorHandler
protected KeyGenerator
keyGenerator
构造器概要
构造器 构造器 说明 AbstractCachingConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @Configuration
class.protected void
useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer
.
字段详细资料
enableCaching
protected AnnotationAttributes enableCaching
cacheManager
protected CacheManager cacheManager
cacheResolver
protected CacheResolver cacheResolver
keyGenerator
protected KeyGenerator keyGenerator
errorHandler
protected CacheErrorHandler errorHandler
构造器详细资料
AbstractCachingConfiguration
public AbstractCachingConfiguration()
方法详细资料
setImportMetadata
public void setImportMetadata(AnnotationMetadata importMetadata)
从接口复制的说明:ImportAware
Set the annotation metadata of the importing @Configuration
class.- 指定者:
setImportMetadata
在接口中ImportAware
useCachingConfigurer
protected void useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer
.