org.springframework.cache.annotation
Class SpringCachingAnnotationParser
java.lang.Object
org.springframework.cache.annotation.SpringCachingAnnotationParser
- All Implemented Interfaces:
- Serializable, CacheAnnotationParser
public class SpringCachingAnnotationParser
- extends Object
- implements CacheAnnotationParser, Serializable
Strategy implementation for parsing Spring's Cacheable and CacheEvict annotations.
- Author:
- Costin Leau
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringCachingAnnotationParser
public SpringCachingAnnotationParser()
parseCacheAnnotation
public CacheDefinition parseCacheAnnotation(AnnotatedElement ae)
- Description copied from interface:
CacheAnnotationParser
- Parses the cache definition for the given method or class,
based on a known annotation type.
This essentially parses a known cache annotation into Spring's
metadata attribute class. Returns null if the method/class
is not cacheable.
- Specified by:
parseCacheAnnotation in interface CacheAnnotationParser
- Parameters:
ae - the annotated method or class
- Returns:
- CacheOperationDefinition the configured caching operation,
or
null if none was found - See Also:
AnnotationCacheDefinitionSource#determineCacheOperationDefinition