public interface CacheAnnotationParser
AnnotationCacheOperationSource delegates to such
parsers for supporting specific annotation types such as Spring's own
Cacheable, CachePut or CacheEvict.| Modifier and Type | Method and Description |
|---|---|
Collection<CacheOperation> |
parseCacheAnnotations(Class<?> type)
Parses the cache definition for the given class,
based on a known annotation type.
|
Collection<CacheOperation> |
parseCacheAnnotations(Method method)
Parses the cache definition for the given method,
based on a known annotation type.
|
Collection<CacheOperation> parseCacheAnnotations(Class<?> type)
This essentially parses a known cache annotation into Spring's
metadata attribute class. Returns null if the class
is not cacheable.
type - the annotated classnull if none was foundAnnotationCacheOperationSource.findCacheOperations(Class)Collection<CacheOperation> parseCacheAnnotations(Method method)
This essentially parses a known cache annotation into Spring's
metadata attribute class. Returns null if the method
is not cacheable.
method - the annotated methodnull if none was foundAnnotationCacheOperationSource.findCacheOperations(Method)