Package com.sun.faces.cdi.clientwindow
Class ClientWindowScopeManager
- java.lang.Object
-
- com.sun.faces.cdi.clientwindow.ClientWindowScopeManager
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener
,EventListener
public class ClientWindowScopeManager extends Object implements jakarta.servlet.http.HttpSessionListener
The manager that deals with non-CDI and CDI ClientWindowScoped beans.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_WINDOW_SCOPE_MANAGER
Stores the constant to keep track of the ClientWindowScopeManager.
-
Constructor Summary
Constructors Constructor Description ClientWindowScopeManager()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientWindowScopeManager
getInstance(FacesContext facesContext)
Get our instance.void
sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
Create the associated data in the session (if any).void
sessionDestroyed(jakarta.servlet.http.HttpSessionEvent httpSessionEvent)
Destroy the associated data in the session.
-
-
-
Field Detail
-
CLIENT_WINDOW_SCOPE_MANAGER
public static final String CLIENT_WINDOW_SCOPE_MANAGER
Stores the constant to keep track of the ClientWindowScopeManager.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ClientWindowScopeManager getInstance(FacesContext facesContext)
Get our instance.- Parameters:
facesContext
- the FacesContext.- Returns:
- our instance
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
Create the associated data in the session (if any).- Specified by:
sessionCreated
in interfacejakarta.servlet.http.HttpSessionListener
- Parameters:
se
- the HTTP session event.
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent httpSessionEvent)
Destroy the associated data in the session.- Specified by:
sessionDestroyed
in interfacejakarta.servlet.http.HttpSessionListener
- Parameters:
httpSessionEvent
- the HTTP session event.
-
-