spring icon indicating copy to clipboard operation
spring copied to clipboard

Change SpringVaadinServlet to initialize it's own ApplicationContext, and link to parent

Open vaadin-bot opened this issue 7 years ago • 0 comments

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

vaadin-bot avatar Sep 20 '16 12:09 vaadin-bot