public interface

CacheAnnotationParser

org.springframework.cache.annotation.CacheAnnotationParser
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract CacheDefinition parseCacheAnnotation(AnnotatedElement ae)
Parses the cache definition for the given method or class, based on a known annotation type.

Public Methods

public abstract CacheDefinition 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
  • CacheOperationDefinition the configured caching operation, or null if none was found
See Also
  • AnnotationCacheDefinitionSource#determineCacheOperationDefinition