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, Contextual<T> contextual, CreationalContext<T> creational) Create the bean.<T> T
getBean
(FacesContext facesContext, Contextual<T> contextual) Get the value from the ClientWindow-map (or null if not found).protected String
getCurrentClientWindowId
(FacesContext facesContext) void
sessionDestroyed
(HttpSessionEvent httpSessionEvent) Called when a session destroyed.
-
Constructor Details
-
ClientWindowScopeContextManager
public ClientWindowScopeContextManager()
-
-
Method Details
-
createBean
public <T> T createBean(FacesContext facesContext, Contextual<T> contextual, 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
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
Called when a session destroyed.- Parameters:
httpSessionEvent
- the HTTP session event.
-
getCurrentClientWindowId
-