接口的使用
org.springframework.cache.interceptor.CacheOperationInvocationContext
使用CacheOperationInvocationContext的程序包 程序包 说明 org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.cache.interceptor中CacheOperationInvocationContext的使用
实现CacheOperationInvocationContext的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 protected classCacheAspectSupport.CacheOperationContextACacheOperationInvocationContextcontext for aCacheOperation.参数类型为CacheOperationInvocationContext的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 protected abstract Collection<String>AbstractCacheResolver. getCacheNames(CacheOperationInvocationContext<?> context)Provide the name of the cache(s) to resolve against the current cache manager.protected Collection<String>NamedCacheResolver. getCacheNames(CacheOperationInvocationContext<?> context)protected Collection<String>SimpleCacheResolver. getCacheNames(CacheOperationInvocationContext<?> context)protected Collection<? extends Cache>CacheAspectSupport. getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver)Collection<? extends Cache>AbstractCacheResolver. resolveCaches(CacheOperationInvocationContext<?> context)Collection<? extends Cache>CacheResolver. resolveCaches(CacheOperationInvocationContext<?> context)Return the cache(s) to use for the specified invocation.org.springframework.cache.jcache.interceptor中CacheOperationInvocationContext的使用
参数类型为CacheOperationInvocationContext的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 protected Collection<String>SimpleExceptionCacheResolver. getCacheNames(CacheOperationInvocationContext<?> context)