Class CacheAddInterceptor

java.lang.Object
com.oracle.coherence.cdi.AbstractCacheInterceptor
com.oracle.coherence.cdi.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.
  • Constructor Details

  • Method Details

    • cacheAdd

      public Object cacheAdd(jakarta.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