com.vaadin.server.
Interface SessionInitListener
-
All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface 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:
7.0.0
Author:
Vaadin Ltd
See Also:
-
-
Method Summary
All Methods Modifier and Type Method Description void
sessionInit​(SessionInitEvent event)
Invoked when a new Vaadin service session is initialized for that service.
-
-
-
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 eventThrows:
ServiceException
- a problem occurs when processing the event
-
-