Interface SessionInitListener

  • All Superinterfaces:
    Serializable

    public interface SessionInitListener
    extends Serializable
    Event listener that can be registered to a VaadinService to get an event when a new Vaadin service session is initialized for that service.

    Because of the way different service instances share the same session, the listener is not necessarily notified immediately when the session is created but only when the first request for that session is handled by a specific service.

    Since:
    1.0
    Author:
    Vaadin Ltd
    See Also:
    VaadinService.addSessionInitListener(SessionInitListener)
    • Method Detail

      • sessionInit

        void sessionInit​(SessionInitEvent event)
                  throws ServiceException
        Invoked when a new Vaadin service session is initialized for that service.

        Because of the way different service instances share the same session, the listener is not necessarily notified immediately when the session is created but only when the first request for that session is handled by a specific service.

        Parameters:
        event - the initialization event
        Throws:
        ServiceException - a problem occurs when processing the event