org.springframework.cache.annotation
Interface CacheAnnotationParser

All Known Implementing Classes:
SpringCachingAnnotationParser

public interface CacheAnnotationParser

Strategy interface for parsing known caching annotation types. AnnotationCacheDefinitionSource delegates to such parsers for supporting specific annotation types such as Spring's own Cacheable or CacheEvict.

Author:
Costin Leau

Method Summary
 CacheOperation parseCacheAnnotation(AnnotatedElement ae)
          Parses the cache definition for the given method or class, based on a known annotation type.
 

Method Detail

parseCacheAnnotation

CacheOperation parseCacheAnnotation(AnnotatedElement ae)
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.

Parameters:
ae - the annotated method or class
Returns:
CacheOperation the configured caching operation, or null if none was found
See Also:
AnnotationCacheOperationSource.determineCacheOperation(java.lang.reflect.AnnotatedElement)