Package com.oracle.coherence.cdi
Class SessionProducer
java.lang.Object
com.oracle.coherence.cdi.SessionProducer
A CDI producer for
Session instances.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.06
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultSession(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) Produces the defaultSession.getSessionWithName(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) Produces aSessionfor a given scope.getSessionWithSessionName(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) Produces aSessionfor a given scope.
-
Constructor Details
-
SessionProducer
@Inject public SessionProducer(jakarta.enterprise.inject.spi.BeanManager context)
-
-
Method Details
-
getDefaultSession
@Produces public Session getDefaultSession(jakarta.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(jakarta.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(jakarta.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
-