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() | 
| boolean | isCandidateClass(Class<?> targetClass)Determine whether the given class is a candidate for cache operations
 in the annotation format of this  CacheAnnotationParser. | 
| 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. | 
public boolean isCandidateClass(Class<?> targetClass)
CacheAnnotationParserCacheAnnotationParser.
 If this method returns false, the methods on the given class
 will not get traversed for #parseCacheAnnotations introspection.
 Returning false is therefore an optimization for non-affected
 classes, whereas true simply means that the class needs to get
 fully introspected for each method on the given class individually.
isCandidateClass in interface CacheAnnotationParsertargetClass - the class to introspectfalse if the class is known to have no cache operation
 annotations at class or method level; true otherwise. The default
 implementation returns true, leading to regular introspection.@Nullable public Collection<CacheOperation> parseCacheAnnotations(Class<?> type)
CacheAnnotationParserThis essentially parses a known cache annotation into Spring's metadata
 attribute class. Returns null if the class is not cacheable.
parseCacheAnnotations in interface CacheAnnotationParsertype - the annotated classnull if none foundAnnotationCacheOperationSource.findCacheOperations(Class)@Nullable public Collection<CacheOperation> parseCacheAnnotations(Method method)
CacheAnnotationParserThis essentially parses a known cache annotation into Spring's metadata
 attribute class. Returns null if the method is not cacheable.
parseCacheAnnotations in interface CacheAnnotationParsermethod - the annotated methodnull if none foundAnnotationCacheOperationSource.findCacheOperations(Method)