spring
spring copied to clipboard
Change SpringVaadinServlet to initialize it's own ApplicationContext, and link to parent
Originally by trojanbug on 2015-11-11 20:23:36 +0200
Currently SpringVaadinServlet looks in Servletcontext (using Spring helper) for an existing application context, and then uses it to bootstrap UIProvider.
This prevents from proper separation should there exist multiple servlets, and forces Vaadin specific beans to pollute main context.
It would be better to create it's own ApplicationContext (ideally with customizable class), much in the same way as Spring servlets do. Consider extending FrameworkServlet from Spring (would require Vaadin specific servlet code to be factored to some helper class for easy reuse between SpringVaadinServlet and VaadinServlet).
Imported from https://dev.vaadin.com/ issue #19249