9 ms·
So springboot and injection does a lot of this; searching the list of known classes for a suitable candidate for injection. But it’s dynamic by implementation
by jojohohanon 2y ago
So springboot and injection does a lot of this; searching the list of known classes for a suitable candidate for injection.
But it’s dynamic by implementation only; to alleviate what came before which was a tedious manual enumeration in xml of those same discoveries.
Presumably we could ask springboot’s discovery to output exactly those finding and the remove the introspection.
- sgammon 2y agoYou have described Micronaut
- mrkeen 2y agoBut to be clear, tedious manual XML configuration was also Spring. Others may have done it earlier, but Spring still decided it was the way to go, put their name on it, and released it.
- lmz 2y agoThey already have such a thing https://docs.spring.io/spring-boot/maven-plugin/aot.html https://docs.spring.io/spring-boot/maven-plugin/aot.html