public class SpringCacheAnnotationParser extends java.lang.Object implements CacheAnnotationParser, java.io.Serializable
Caching
, Cacheable
,
CacheEvict
and CachePut
annotations.Constructor and Description |
---|
SpringCacheAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
private <T extends java.lang.annotation.Annotation> |
getAnnotations(java.lang.reflect.AnnotatedElement ae,
java.lang.Class<T> annotationType) |
int |
hashCode() |
private <T extends java.lang.annotation.Annotation> |
lazyInit(java.util.Collection<CacheOperation> ops) |
(package private) CacheableOperation |
parseCacheableAnnotation(java.lang.reflect.AnnotatedElement ae,
Cacheable caching) |
java.util.Collection<CacheOperation> |
parseCacheAnnotations(java.lang.reflect.AnnotatedElement ae)
Parses the cache definition for the given method or class,
based on a known annotation type.
|
(package private) java.util.Collection<CacheOperation> |
parseCachingAnnotation(java.lang.reflect.AnnotatedElement ae,
Caching caching) |
(package private) CacheEvictOperation |
parseEvictAnnotation(java.lang.reflect.AnnotatedElement ae,
CacheEvict caching) |
(package private) CacheOperation |
parseUpdateAnnotation(java.lang.reflect.AnnotatedElement ae,
CachePut caching) |
public java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.reflect.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)
private <T extends java.lang.annotation.Annotation> java.util.Collection<CacheOperation> lazyInit(java.util.Collection<CacheOperation> ops)
CacheableOperation parseCacheableAnnotation(java.lang.reflect.AnnotatedElement ae, Cacheable caching)
CacheEvictOperation parseEvictAnnotation(java.lang.reflect.AnnotatedElement ae, CacheEvict caching)
CacheOperation parseUpdateAnnotation(java.lang.reflect.AnnotatedElement ae, CachePut caching)
java.util.Collection<CacheOperation> parseCachingAnnotation(java.lang.reflect.AnnotatedElement ae, Caching caching)
private <T extends java.lang.annotation.Annotation> java.util.Collection<T> getAnnotations(java.lang.reflect.AnnotatedElement ae, java.lang.Class<T> annotationType)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object