org.springframework.cache.interceptor

Interface CacheOperationInvocationContext<O extends BasicOperation>

  • Type Parameters:
    O - the operation type
    All Known Implementing Classes:
    CacheAspectSupport.CacheOperationContext


    public interface CacheOperationInvocationContext<O extends BasicOperation>
    Representation of the context of the invocation of a cache operation.

    The cache operation is static and independent of a particular invocation; this interface gathers the operation and a particular invocation.

    Since:
    4.1
    Author:
    Stephane Nicoll
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Object[] getArgs()
      Return the argument list used to invoke the method.
      java.lang.reflect.Method getMethod()
      Return the method which was invoked.
      O getOperation()
      Return the cache operation.
      java.lang.Object getTarget()
      Return the target instance on which the method was invoked.
    • Method Detail

      • getOperation

        O getOperation()
        Return the cache operation.
      • getTarget

        java.lang.Object getTarget()
        Return the target instance on which the method was invoked.
      • getMethod

        java.lang.reflect.Method getMethod()
        Return the method which was invoked.
      • getArgs

        java.lang.Object[] getArgs()
        Return the argument list used to invoke the method.