org.springframework.cache.jcache.interceptor

Interface JCacheOperation<A extends java.lang.annotation.Annotation>

  • Type Parameters:
    A - the type of the JSR-107 annotation
    All Superinterfaces:
    BasicOperation, javax.cache.annotation.CacheMethodDetails<A>


    public interface JCacheOperation<A extends java.lang.annotation.Annotation>
    extends BasicOperation, javax.cache.annotation.CacheMethodDetails<A>
    Model the base of JSR-107 cache operation.

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

    Since:
    4.1
    Author:
    Stephane Nicoll
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      javax.cache.annotation.CacheInvocationParameter[] getAllParameters(java.lang.Object... values)
      Return the CacheInvocationParameter instances based on the specified method arguments.
      CacheResolver getCacheResolver()
      Return the CacheResolver instance to use to resolve the cache to use for this operation.
      • Methods inherited from interface javax.cache.annotation.CacheMethodDetails

        getAnnotations, getCacheAnnotation, getCacheName, getMethod
    • Method Detail

      • getCacheResolver

        CacheResolver getCacheResolver()
        Return the CacheResolver instance to use to resolve the cache to use for this operation.
      • getAllParameters

        javax.cache.annotation.CacheInvocationParameter[] getAllParameters(java.lang.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 - the parameters value for a particular invocation