Class SessionLocaleVaadinServiceInitListener

  • All Implemented Interfaces:
    com.vaadin.flow.server.VaadinServiceInitListener, Serializable, EventListener

    public class SessionLocaleVaadinServiceInitListener
    extends Object
    implements com.vaadin.flow.server.VaadinServiceInitListener
    This VaadinServiceInitListener is responsible for updating the locale and time zone in Spring's LocaleContextHolder at the start of each browser request from the current VaadinSession. It also detects the time zone from the client and stores it in the session.
    See Also:
    Serialized Form
    • Constructor Detail

      • SessionLocaleVaadinServiceInitListener

        public SessionLocaleVaadinServiceInitListener()
    • Method Detail

      • serviceInit

        public void serviceInit​(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
        Specified by:
        serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener