Package com.oracle.coherence.cdi
Class SessionProducer
- java.lang.Object
-
- com.oracle.coherence.cdi.SessionProducer
-
-
Constructor Summary
Constructors Constructor Description SessionProducer(javax.enterprise.inject.spi.BeanManager context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session
getDefaultSession(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces the defaultSession
.Session
getSessionWithName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces aSession
for a given scope.Session
getSessionWithSessionName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces aSession
for a given scope.
-
-
-
Method Detail
-
getDefaultSession
@Produces public Session getDefaultSession(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces the defaultSession
.- Parameters:
injectionPoint
- theInjectionPoint
that the cache factory it to be injected into- Returns:
- the default
Session
-
getSessionWithSessionName
@Produces @SessionName public Session getSessionWithSessionName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces aSession
for a given scope.If the value of the scope qualifier is blank or empty, the default
Session
will be returned.- Parameters:
injectionPoint
- theInjectionPoint
that the cache factory it to be injected into- Returns:
- the named
Session
-
getSessionWithName
@Produces @Name("") public Session getSessionWithName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces aSession
for a given scope.If the value of the scope qualifier is blank or empty, the default
Session
will be returned.- Parameters:
injectionPoint
- theInjectionPoint
that the cache factory it to be injected into- Returns:
- the named
Session
-
-