Class ClientWindowScopeContextManager


  • public class ClientWindowScopeContextManager
    extends Object
    The manager that deals with CDI ClientWindowScoped beans.
    • Constructor Detail

      • ClientWindowScopeContextManager

        public ClientWindowScopeContextManager()
    • 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)