Class 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 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
    • Constructor Detail

      • ClientWindowScopeManager

        public ClientWindowScopeManager()
        Constructor.
    • 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 interface jakarta.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 interface jakarta.servlet.http.HttpSessionListener
        Parameters:
        httpSessionEvent - the HTTP session event.