public interface CacheOperationSource
CacheInterceptor
. Implementations know how to source
cache operation attributes, whether from configuration, metadata attributes at
source level, or elsewhere.Modifier and Type | Method and Description |
---|---|
java.util.Collection<CacheOperation> |
getCacheOperations(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Return the collection of cache operations for this method, or
null
if the method contains no cacheable annotations. |
java.util.Collection<CacheOperation> getCacheOperations(java.lang.reflect.Method method, java.lang.Class<?> targetClass)
null
if the method contains no cacheable annotations.method
- the method to introspecttargetClass
- the target class (may be null
, in which case
the declaring class of the method must be used)null
if none found