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