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) |
int |
hashCode() |
java.util.Collection<CacheOperation> |
parseCacheAnnotations(java.lang.Class<?> type)
Parse the cache definition for the given class,
based on an annotation type understood by this parser.
|
java.util.Collection<CacheOperation> |
parseCacheAnnotations(java.lang.reflect.Method method)
Parse the cache definition for the given method,
based on an annotation type understood by this parser.
|
public java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.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)
public java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.reflect.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)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object