接口 JCacheOperationSource
- 所有已知实现类:
AbstractFallbackJCacheOperationSource,AnnotationJCacheOperationSource,DefaultJCacheOperationSource
public interface JCacheOperationSource
Interface used byJCacheInterceptor. Implementations know how to source cache operation attributes from standard JSR-107 annotations.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
CacheOperationSource
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 JCacheOperation<?>getCacheOperation(Method method, Class<?> targetClass)Return the cache operations for this method, ornullif the method contains no JSR-107 related metadata.
方法详细资料
getCacheOperation
@Nullable JCacheOperation<?> getCacheOperation(Method method, @Nullable Class<?> targetClass)
Return the cache operations for this method, ornullif the method contains no JSR-107 related metadata.- 参数:
method- the method to introspecttargetClass- the target class (may benull, in which case the declaring class of the method must be used)- 返回:
- the cache operation for this method, or
nullif none found