Class SessionLocaleVaadinServiceInitListener
- java.lang.Object
-
- de.codecamp.messages.spring.vaadin.SessionLocaleVaadinServiceInitListener
-
- All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener,Serializable,EventListener
public class SessionLocaleVaadinServiceInitListener extends Object implements com.vaadin.flow.server.VaadinServiceInitListener
ThisVaadinServiceInitListeneris responsible for updating the locale and time zone in Spring'sLocaleContextHolderat the start of each browser request from the currentVaadinSession. It also detects the time zone from the client and stores it in the session.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionLocaleVaadinServiceInitListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
-