Package com.sun.faces.cdi.clientwindow
Class ClientWindowScopeContextManager
- java.lang.Object
-
- com.sun.faces.cdi.clientwindow.ClientWindowScopeContextManager
-
public class ClientWindowScopeContextManager extends Object
The manager that deals with CDI ClientWindowScoped beans.
-
-
Constructor Summary
Constructors Constructor Description ClientWindowScopeContextManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.
-
-
-
Method Detail
-
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
protected String getCurrentClientWindowId(FacesContext facesContext)
-
-