Package com.oracle.coherence.cdi
Class AbstractCacheInterceptor
- java.lang.Object
-
- com.oracle.coherence.cdi.AbstractCacheInterceptor
-
- Direct Known Subclasses:
CacheAddInterceptor
,CacheGetInterceptor
,CachePutInterceptor
,CacheRemoveInterceptor
public abstract class AbstractCacheInterceptor extends Object
Abstract base class for caching CDI interceptors.
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheInterceptor(Coherence coherence, CoherenceExtension extension)
Construct cache interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Coherence
getCoherence()
protected CoherenceExtension
getExtension()
protected Session
getSession(String sName)
Obtains the namedSession
or the default one if session name was not specified.
-
-
-
Constructor Detail
-
AbstractCacheInterceptor
public AbstractCacheInterceptor(Coherence coherence, CoherenceExtension extension)
Construct cache interceptor.- Parameters:
coherence
- the Coherence instanceextension
- the Coherence extension
-
-
Method Detail
-
getSession
protected Session getSession(String sName)
Obtains the namedSession
or the default one if session name was not specified.- Parameters:
sName
- session name- Returns:
- the Coherence session
-
getCoherence
protected Coherence getCoherence()
-
getExtension
protected CoherenceExtension getExtension()
-
-