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 SessiongetDefaultSession(javax.enterprise.inject.spi.InjectionPoint injectionPoint)Produces the defaultSession.SessiongetSessionWithName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)Produces aSessionfor a given scope.SessiongetSessionWithSessionName(javax.enterprise.inject.spi.InjectionPoint injectionPoint)Produces aSessionfor a given scope.
-
-
-
Method Detail
-
getDefaultSession
@Produces public Session getDefaultSession(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Produces the defaultSession.- Parameters:
injectionPoint- theInjectionPointthat 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 aSessionfor a given scope.If the value of the scope qualifier is blank or empty, the default
Sessionwill be returned.- Parameters:
injectionPoint- theInjectionPointthat 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 aSessionfor a given scope.If the value of the scope qualifier is blank or empty, the default
Sessionwill be returned.- Parameters:
injectionPoint- theInjectionPointthat the cache factory it to be injected into- Returns:
- the named
Session
-
-