Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

VaadinServiceInitListener page: mention that META-INF/services doesn't work with spring #1397

Open
mvysny opened this issue Nov 23, 2020 · 1 comment

Comments

@mvysny
Copy link
Member

mvysny commented Nov 23, 2020

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
Copy link
Member

Legioth commented Nov 23, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants