@FunctionalInterface public interface SessionInitListener extends Serializable
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.
VaadinService.addSessionInitListener(SessionInitListener)
Modifier and Type | Method and Description |
---|---|
void |
sessionInit(SessionInitEvent event)
Invoked when a new Vaadin service session is initialized for that
service.
|
void sessionInit(SessionInitEvent event) throws ServiceException
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.
event
- the initialization eventServiceException
- a problem occurs when processing the eventCopyright © 2018 Vaadin Ltd. All rights reserved.