flow-and-components-documentation
flow-and-components-documentation copied to clipboard
Missing docs: custom SessionInitListener with Vaadin-Spring
trafficstars
Would be good to have an example on how to register app-specific SessionInitListener when running Vaadin on Spring.
You can use this:
@Component
public class CustomServiceInitListener implements VaadinServiceInitListener {
@Override
public void serviceInit(ServiceInitEvent event) {
event.getSource().addSessionInitListener(event1 -> {
// do something
});
}
}