public class

SpringCachingAnnotationParser

extends Object
implements Serializable CacheAnnotationParser
java.lang.Object
   ↳ org.springframework.cache.annotation.SpringCachingAnnotationParser

Class Overview

Strategy implementation for parsing Spring's Cacheable and CacheEvict annotations.

Summary

Public Constructors
SpringCachingAnnotationParser()
Public Methods
CacheDefinition parseCacheAnnotation(AnnotatedElement ae)
Parses the cache definition for the given method or class, based on a known annotation type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.cache.annotation.CacheAnnotationParser

Public Constructors

public SpringCachingAnnotationParser ()

Public Methods

public 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