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)
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.
|
protected Collection<CacheOperation> |
parseCacheAnnotations(org.springframework.cache.annotation.SpringCacheAnnotationParser.DefaultCacheConfig cachingConfig,
AnnotatedElement ae) |
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 was foundAnnotationCacheOperationSource.findCacheOperations(Class)
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 was foundAnnotationCacheOperationSource.findCacheOperations(Method)
protected Collection<CacheOperation> parseCacheAnnotations(org.springframework.cache.annotation.SpringCacheAnnotationParser.DefaultCacheConfig cachingConfig, AnnotatedElement ae)