Package com.sun.faces.cdi.clientwindow
Class ClientWindowScopeContextManager
java.lang.Object
com.sun.faces.cdi.clientwindow.ClientWindowScopeContextManager
The manager that deals with CDI ClientWindowScoped beans.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
createBean
(FacesContext facesContext, jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational) Create the bean.<T> T
getBean
(FacesContext facesContext, jakarta.enterprise.context.spi.Contextual<T> contextual) Get the value from the ClientWindow-map (or null if not found).protected String
getCurrentClientWindowId
(FacesContext facesContext) void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent httpSessionEvent) Called when a session destroyed.
-
Constructor Details
-
ClientWindowScopeContextManager
public ClientWindowScopeContextManager()
-
-
Method Details
-
createBean
public <T> T createBean(FacesContext facesContext, jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational) Create the bean.- Type Parameters:
T
- the type.- Parameters:
facesContext
- the faces context.contextual
- the contextual.creational
- the creational.- Returns:
- the value or null if not found.
-
getBean
public <T> T getBean(FacesContext facesContext, jakarta.enterprise.context.spi.Contextual<T> contextual) Get the value from the ClientWindow-map (or null if not found).- Type Parameters:
T
- the type.- Parameters:
facesContext
- the faces context.contextual
- the contextual.- Returns:
- the value or null if not found.
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent httpSessionEvent) Called when a session destroyed.- Parameters:
httpSessionEvent
- the HTTP session event.
-
getCurrentClientWindowId
-