Package com.oracle.coherence.cdi
Class CacheAddInterceptor
java.lang.Object
com.oracle.coherence.cdi.AbstractCacheInterceptor
com.oracle.coherence.cdi.CacheAddInterceptor
A CDI interceptor that always invokes target method and then
caches invocation result before returning it.
-
Constructor Summary
ConstructorDescriptionCacheAddInterceptor
(Coherence coherence, CoherenceExtension extension) Create theCacheAddInterceptor
. -
Method Summary
Methods inherited from class com.oracle.coherence.cdi.AbstractCacheInterceptor
getCoherence, getExtension, getSession
-
Constructor Details
-
CacheAddInterceptor
Create theCacheAddInterceptor
.- Parameters:
coherence
- the Coherence instanceextension
- the Coherence CDI extension
-
-
Method Details
-
cacheAdd
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
-