类 SimpleCacheResolver
- java.lang.Object
- org.springframework.cache.interceptor.AbstractCacheResolver
- org.springframework.cache.interceptor.SimpleCacheResolver
- 所有已实现的接口:
InitializingBean,CacheResolver
public class SimpleCacheResolver extends AbstractCacheResolver
A simpleCacheResolverthat resolves theCacheinstance(s) based on a configurableCacheManagerand the name of the cache(s) as provided bygetCacheNames()- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
BasicOperation.getCacheNames()
构造器概要
构造器 构造器 说明 SimpleCacheResolver()SimpleCacheResolver(CacheManager cacheManager)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Collection<String>getCacheNames(CacheOperationInvocationContext<?> context)Provide the name of the cache(s) to resolve against the current cache manager.从类继承的方法 org.springframework.cache.interceptor.AbstractCacheResolver
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager
构造器详细资料
SimpleCacheResolver
public SimpleCacheResolver()
SimpleCacheResolver
public SimpleCacheResolver(CacheManager cacheManager)
方法详细资料
getCacheNames
protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)
从类复制的说明:AbstractCacheResolverProvide the name of the cache(s) to resolve against the current cache manager.It is acceptable to return
nullto indicate that no cache could be resolved for this invocation.- 指定者:
getCacheNames在类中AbstractCacheResolver- 参数:
context- the context of the particular invocation- 返回:
- the cache name(s) to resolve, or
nullif no cache should be resolved