Top Description Interfaces Classes
module spring.context.support

Package org.springframework.cache.jcache.interceptor

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

AOP-based solution for declarative caching demarcation using JSR-107 annotations.

Strongly based on the infrastructure in org.springframework.cache.interceptor that deals with Spring's caching annotations.

Builds on the AOP infrastructure in org.springframework.aop.framework. Any POJO can be cache-advised with Spring.

Interface Summary

Modifier and TypeInterface and Description
public interface
JCacheOperation<
the type of the JSR-107 annotation
A extends Annotation
>

Model the base of JSR-107 cache operation through an interface contract.

public interface

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractCacheInterceptor<
the operation type
O extends AbstractJCacheOperation<A>
,
the annotation type
A extends Annotation
>

A base interceptor for JSR-107 cache annotations.

public abstract class
AbstractFallbackJCacheOperationSource

Abstract implementation of JCacheOperationSource that caches attributes for methods and implements a fallback policy: 1.

pack-priv abstract class
AbstractJCacheKeyOperation<
the annotation type
A extends Annotation
>

A base JCacheOperation that operates with a key.

pack-priv abstract class
AbstractJCacheOperation<
the annotation type
A extends Annotation
>

A base JCacheOperation implementation.

pack-priv abstract class
AbstractKeyCacheInterceptor<
the operation type
O extends AbstractJCacheKeyOperation<A>
,
the annotation type
A extends Annotation
>

A base interceptor for JSR-107 key-based cache annotations.

public abstract class
AnnotationJCacheOperationSource

Implementation of the JCacheOperationSource interface that reads the JSR-107 CacheResult, CachePut, CacheRemove and CacheRemoveAll annotations.

public class
BeanFactoryJCacheOperationSourceAdvisor

Advisor driven by a JCacheOperationSource, used to include a cache advice bean for methods that are cacheable.

pack-priv class
CachePutInterceptor

Intercept methods annotated with CachePut.

pack-priv class
CachePutOperation

The JCacheOperation implementation for a CachePut operation.

pack-priv class
CacheRemoveAllInterceptor

Intercept methods annotated with CacheRemoveAll.

pack-priv class
CacheRemoveAllOperation

The JCacheOperation implementation for a CacheRemoveAll operation.

pack-priv class
CacheRemoveEntryInterceptor

Intercept methods annotated with CacheRemove.

pack-priv class
CacheRemoveOperation

The JCacheOperation implementation for a CacheRemove operation.

pack-priv class
CacheResolverAdapter

Spring's CacheResolver implementation that delegates to a standard JSR-107 javax.cache.annotation.CacheResolver.

pack-priv class
CacheResultInterceptor

Intercept methods annotated with CacheResult.

pack-priv class
CacheResultOperation

The JCacheOperation implementation for a CacheResult operation.

pack-priv class
DefaultCacheInvocationContext<
the annotation type
A extends Annotation
>

The default CacheOperationInvocationContext implementation used by all interceptors.

pack-priv class
DefaultCacheKeyInvocationContext<
the annotation type
A extends Annotation
>

The default CacheKeyInvocationContext implementation.

pack-priv class
DefaultCacheMethodDetails<
the annotation type
A extends Annotation
>

The default CacheMethodDetails implementation.

public class
DefaultJCacheOperationSource

The default JCacheOperationSource implementation delegating default operations to configurable services with sensible defaults when not present.

public class
JCacheAspectSupport

Base class for JSR-107 caching aspects, such as the JCacheInterceptor or an AspectJ aspect.

public class
JCacheInterceptor

AOP Alliance MethodInterceptor for declarative cache management using JSR-107 caching annotations.

public abstract class
JCacheOperationSourcePointcut

Deprecated for removal since 6.0.10. since 6.0.10, as it is not used by the framework anymore
A Pointcut that matches if the underlying JCacheOperationSource has an operation for a given method.
pack-priv class
KeyGeneratorAdapter

Spring's KeyGenerator implementation that either delegates to a standard JSR-107 javax.cache.annotation.CacheKeyGenerator, or wrap a standard KeyGenerator so that only relevant parameters are handled.

public class
SimpleExceptionCacheResolver

A simple CacheResolver that resolves the exception cache based on a configurable CacheManager and the name of the cache: CacheResultOperation#getExceptionCacheName().