org.springframework.cache.jcache.interceptor

## Interface JCacheOperationSource

- All Known Implementing Classes:
    AbstractFallbackJCacheOperationSource, AnnotationJCacheOperationSource, DefaultJCacheOperationSource

      public interface JCacheOperationSource

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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `JCacheOperation<?>` | `getCacheOperation(Method method, Class<?> targetClass)` Return the cache operations for this method, or `null` if the method contains no JSR-107 related metadata.

- - ### Method Detail

    - #### getCacheOperation

          @Nullable
          JCacheOperation<?> getCacheOperation(Method method,
                                                         @Nullable
                                                         Class<?> targetClass)

      Return the cache operations for this method, or `null` if the method contains no JSR-107 related metadata.
      Parameters:
        `method` - the method to introspect
        `targetClass` - the target class (may be `null`, in which case the declaring class of the method must be used)
      Returns:
        the cache operation for this method, or `null` if none found