Interface CacheOperationSource
- All Known Implementing Classes:
AbstractFallbackCacheOperationSource,AnnotationCacheOperationSource,CompositeCacheOperationSource,NameMatchCacheOperationSource
public interface CacheOperationSource
Interface used byCacheInterceptor. Implementations know how to source cache operation attributes, whether from configuration, metadata attributes at source level, or elsewhere.- Since:
- 3.1
- Author:
- Costin Leau, Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<CacheOperation>getCacheOperations(Method method, Class<?> targetClass)Return the collection of cache operations for this method, ornullif the method contains no cacheable annotations.
Method Detail
getCacheOperations
Collection<CacheOperation> getCacheOperations(Method method, Class<?> targetClass)
Return the collection of cache operations for this method, ornullif the method contains no cacheable annotations.- Parameters:
method- the method to introspecttargetClass- the target class (may benull, in which case the declaring class of the method must be used)- Returns:
- all cache operations for this method, or
nullif none found