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

public Interface JCacheOperationSource

Known Direct Implementers
org.springframework.cache.jcache.interceptor.AbstractFallbackJCacheOperationSource
Imports
java.lang.reflect.Method, org.springframework.lang.Nullable

Interface used by JCacheInterceptor. Implementations know how to source cache operation attributes from standard JSR-107 annotations.
Author
Stephane Nicoll
Since
4.1
See Also
org.springframework.cache.interceptor.CacheOperationSource

Method Summary

Modifier and TypeMethod and Description
public JCacheOperation<?>

Returns:

the cache operation for this method, or null if none found
getCacheOperation
(Method
the method to introspect
method
,
Class<?>
the target class (may be null, in which case the declaring class of the method must be used)
targetClass
)

Return the cache operations for this method, or null if the method contains no JSR-107 related metadata.

Method Detail

getCacheOperationback to summary
public JCacheOperation<?> getCacheOperation(Method method, Class<?> targetClass)

Return the cache operations for this method, or null if the method contains no JSR-107 related metadata.

Parameters
method:Method

the method to introspect

targetClass:Class<?>

the target class (may be null, in which case the declaring class of the method must be used)

Returns:JCacheOperation<?>

the cache operation for this method, or null if none found

Annotations
@Nullable