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(AnnotatedElement ae)
Parses the cache definition for the given method or class,
based on a known annotation type.
|
public Collection<CacheOperation> parseCacheAnnotations(AnnotatedElement ae)
CacheAnnotationParser
This essentially parses a known cache annotation into Spring's
metadata attribute class. Returns null
if the method/class
is not cacheable.
parseCacheAnnotations
in interface CacheAnnotationParser
ae
- the annotated method or classnull
if none was foundAnnotationCacheOperationSource.determineCacheOperations(AnnotatedElement)