spring-framework / org.springframework.cache.annotation / AnnotationCacheOperationSource

AnnotationCacheOperationSource

open class AnnotationCacheOperationSource : AbstractFallbackCacheOperationSource, Serializable

Implementation of the org.springframework.cache.interceptor.CacheOperationSource interface for working with caching metadata in annotation format.

This class reads Spring's Cacheable, CachePut and CacheEvict annotations and exposes corresponding caching operation definition to Spring's cache infrastructure. This class may also serve as base class for a custom CacheOperationSource.

Author
Costin Leau

Author
Juergen Hoeller

Author
Stephane Nicoll

Since
3.1

Constructors

<init>

AnnotationCacheOperationSource()

Create a default AnnotationCacheOperationSource, supporting public methods that carry the Cacheable and CacheEvict annotations.

AnnotationCacheOperationSource(publicMethodsOnly: Boolean)

Create a default AnnotationCacheOperationSource, supporting public methods that carry the Cacheable and CacheEvict annotations.

AnnotationCacheOperationSource(annotationParser: CacheAnnotationParser)
AnnotationCacheOperationSource(vararg annotationParsers: CacheAnnotationParser)
AnnotationCacheOperationSource(annotationParsers: MutableSet<CacheAnnotationParser>)

Create a custom AnnotationCacheOperationSource.

Functions

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int