CDI in Quarkus: CONTEXTS & DEPENDENCY INJECTION

https://quarkus.io/guides/cdi

1. OK. Let’s start simple. What is a bean?

Well, a bean is a container-managed object that supports a set of basic services, such as injection of dependencies, lifecycle callbacks and interceptors.

3. What is it good for a container-managed?

An application developer can focus on the business logic rather than finding out “where and how” to obtain a fully initialized component with all of its dependencies.

You’ve probably heard of the inversion of control (IoC) programming principle. Dependency injection is one of the implementation techniques of IoC.

 

Lascia un commento