AnnotationCacheOperationSource delegates to such parsers
for supporting specific annotation types such as Spring's own
Cacheable, CachePut andCacheEvict.
AnnotationCacheOperationSource, SpringCacheAnnotationParser
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: false if the class is known to have no cache operation
annotations at class or method level; true otherwise. The default
implementation returns true, leading to regular introspection.the class to introspect targetClass)Determine whether the given class is a candidate for cache operations
in the annotation format of this |
| public Collection | Returns: the configured caching operation, ornull if none foundthe annotated class type)Parse the cache definition for the given class, based on an annotation type understood by this parser. |
| public Collection | Returns: the configured caching operation, ornull if none foundthe annotated method method)Parse the cache definition for the given method, based on an annotation type understood by this parser. |
| isCandidateClass | back to summary |
|---|---|
| public default boolean isCandidateClass(Class<?> targetClass) Determine whether the given class is a candidate for cache operations
in the annotation format of this If this method returns
| |
| parseCacheAnnotations | back to summary |
|---|---|
| public Collection Parse the cache definition for the given class, based on an annotation type understood by this parser. This essentially parses a known cache annotation into Spring's metadata
attribute class. Returns
| |
| parseCacheAnnotations | back to summary |
|---|---|
| public Collection Parse the cache definition for the given method, based on an annotation type understood by this parser. This essentially parses a known cache annotation into Spring's metadata
attribute class. Returns
| |