Contexts and Dependency Injection (CDI)
TODO
- https://quarkus.io/guides/cdi
- https://stackoverflow.com/questions/64916209/failed-to-build-quarkus-application-unsatisfied-dependency-for-type
- https://stackoverflow.com/questions/67132894/what-is-springboot-alternative-to-javaee-cdi
- https://www.baeldung.com/java-ee-cdi
TODO
I suggest you to have a look at the great Weld documentation. I consider CDI / Weld to be one of the best DI solutions (maybe the best) available. The documentation describes the thing with different scopes (lifetime of an object) in detail. http://docs.jboss.org/weld/reference/latest-2.2/en-US/html/