public interface CacheAnnotationParser
AnnotationCacheOperationSource
delegates to such parsers
for supporting specific annotation types such as Spring's own
Cacheable
, CachePut
andCacheEvict
.AnnotationCacheOperationSource
,
SpringCacheAnnotationParser
Modifier and Type | Method and Description |
---|---|
java.util.Collection<CacheOperation> |
parseCacheAnnotations(java.lang.Class<?> type)
Parse the cache definition for the given class,
based on an annotation type understood by this parser.
|
java.util.Collection<CacheOperation> |
parseCacheAnnotations(java.lang.reflect.Method method)
Parse the cache definition for the given method,
based on an annotation type understood by this parser.
|
java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.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 foundAnnotationCacheOperationSource.findCacheOperations(Class)
java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.reflect.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 foundAnnotationCacheOperationSource.findCacheOperations(Method)