public class SpringCacheAnnotationParser extends Object implements CacheAnnotationParser, Serializable
Caching
, Cacheable
,
CacheEvict
, and CachePut
annotations.Constructor and Description |
---|
SpringCacheAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
Collection<CacheOperation> |
parseCacheAnnotations(Class<?> type)
Parse the cache definition for the given class,
based on an annotation type understood by this parser.
|
Collection<CacheOperation> |
parseCacheAnnotations(Method method)
Parse the cache definition for the given method,
based on an annotation type understood by this parser.
|
@Nullable public Collection<CacheOperation> parseCacheAnnotations(Class<?> type)
CacheAnnotationParser
This essentially parses a known cache annotation into Spring's metadata
attribute class. Returns null
if the class is not cacheable.
parseCacheAnnotations
in interface CacheAnnotationParser
type
- the annotated classnull
if none foundAnnotationCacheOperationSource.findCacheOperations(Class)
@Nullable public Collection<CacheOperation> parseCacheAnnotations(Method method)
CacheAnnotationParser
This essentially parses a known cache annotation into Spring's metadata
attribute class. Returns null
if the method is not cacheable.
parseCacheAnnotations
in interface CacheAnnotationParser
method
- the annotated methodnull
if none foundAnnotationCacheOperationSource.findCacheOperations(Method)