Class CacheAddInterceptor


  • @Interceptor
    @Priority(1005)
    public class CacheAddInterceptor
    extends AbstractCacheInterceptor
    A CDI interceptor that always invokes target method and then caches invocation result before returning it.
    • Method Detail

      • cacheAdd

        public Object cacheAdd​(javax.interceptor.InvocationContext ctxInvocation)
                        throws Exception
        Always invokes target method and caches invocation result before returning it.
        Parameters:
        ctxInvocation - the invocation context
        Returns:
        a result of the invocation of the target method
        Throws:
        Exception - if thrown by target method