VaadinServiceInitListener page: mention that META-INF/services doesn't work with spring
Opened this issue · 1 comments
mvysny commented
https://vaadin.com/docs/flow/advanced/tutorial-service-init-listener.html
Would be good to mention that the lookup via META-INF/services/
doesn't work with Spring.
Legioth commented
META-INF/services
is supposed to work also when using Spring. There's code in SpringInstantiator
to explicilty combine the results from the super
implementation (which uses META-INF/services
) with listeners found through Spring: https://github.com/vaadin/spring/blob/014ba2bcfaa995a94083fa65d3b753c1a7b75d5b/vaadin-spring/src/main/java/com/vaadin/flow/spring/SpringInstantiator.java#L64