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

    • Method Detail

      • getTarget

        java.lang.Object getTarget()
        Returns:
        The object the intercepted method was invoked on.
      • getAllParameters

        CacheInvocationParameter[] getAllParameters()
        Returns a clone of the array of all method parameters.
        Returns:
        An array of all parameters for the annotated method
      • unwrap

        <T> T unwrap​(java.lang.Class<T> cls)
        Return an object of the specified type to allow access to the provider-specific API. If the provider's implementation does not support the specified class, the IllegalArgumentException is thrown.
        Type Parameters:
        T - The type of the expected underlying Cache implementation.
        Parameters:
        cls - the class of the object to be returned. This is normally either the underlying implementation class or an interface that it implements.
        Returns:
        an instance of the specified class
        Throws:
        java.lang.IllegalArgumentException - if the provider doesn't support the specified class.