Top Description Methods
org.springframework.cache.jcache.interceptor

public Interface JCacheOperation<A extends Annotation>

extends BasicOperation, CacheMethodDetails<A extends Annotation>
Known Direct Implementers
org.springframework.cache.jcache.interceptor.AbstractJCacheOperation
Type Parameters
<A>
the type of the JSR-107 annotation
Imports
java.lang.annotation.Annotation, javax.cache.annotation.CacheInvocationParameter, .CacheMethodDetails, org.springframework.cache.interceptor.BasicOperation, .CacheResolver

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

A cache operation can be statically cached as it does not contain any runtime operation of a specific cache invocation.

Author
Stephane Nicoll
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public CacheInvocationParameter[]
getAllParameters(Object...
the parameters value for a particular invocation
values
)

Return the CacheInvocationParameter instances based on the specified method arguments.

public CacheResolver
getCacheResolver()

Return the CacheResolver instance to use to resolve the cache to use for this operation.

Inherited from javax.cache.annotation.CacheMethodDetails:
getAnnotationsgetCacheAnnotationgetCacheNamegetMethod
Inherited from org.springframework.cache.interceptor.BasicOperation:
getCacheNames

Method Detail

getAllParametersback to summary
public CacheInvocationParameter[] getAllParameters(Object... values)

Return the CacheInvocationParameter instances based on the specified method arguments.

The method arguments must match the signature of the related method invocation

Parameters
values:Object[]

the parameters value for a particular invocation

getCacheResolverback to summary
public CacheResolver getCacheResolver()

Return the CacheResolver instance to use to resolve the cache to use for this operation.