Package com.oracle.coherence.cdi
Class CachePutInterceptor
- java.lang.Object
-
- com.oracle.coherence.cdi.AbstractCacheInterceptor
-
- com.oracle.coherence.cdi.CachePutInterceptor
-
@Interceptor @Priority(1005) public class CachePutInterceptor extends AbstractCacheInterceptor
A CDI interceptor that stores parameter value in the Coherence cache.
-
-
Constructor Summary
Constructors Constructor Description CachePutInterceptor(Coherence coherence, CoherenceExtension extension)
Create theCachePutInterceptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cachePut(javax.interceptor.InvocationContext ctxInvocation)
Stores parameter annotated withCacheValue
into cache, invokes target method and returns result of the invocation.-
Methods inherited from class com.oracle.coherence.cdi.AbstractCacheInterceptor
getCoherence, getExtension, getSession
-
-
-
-
Constructor Detail
-
CachePutInterceptor
@Inject public CachePutInterceptor(@Name("") Coherence coherence, CoherenceExtension extension)
Create theCachePutInterceptor
- Parameters:
coherence
- the Coherence instanceextension
- the Coherence CDI extension
-
-
Method Detail
-
cachePut
public Object cachePut(javax.interceptor.InvocationContext ctxInvocation) throws Exception
Stores parameter annotated withCacheValue
into cache, invokes target method and returns result of the invocation.- Parameters:
ctxInvocation
- the invocation context- Returns:
- the result of the invocation of the target method
- Throws:
Exception
- if thrown by target method
-
-