© Luqman Saeed and Ghazy Abdallah 2022
L. Saeed, G. AbdallahPro Cloud Native Java EE Appshttps://doi.org/10.1007/978-1-4842-8900-6_4

4. Managing Dependencies with CDI

Luqman Saeed1   and Ghazy Abdallah2
(1)
Cantonments, Accra, Ghana
(2)
Alwakra, Qatar
 

Every nontrivial application will be made up of different components working together to fulfill the objectives of the application. These components will have intricate dependencies on each other. Managing this complex interdependence manually can be a very daunting task. The Jakarta EE platform provides the Jakarta Contexts and Dependency Injection API that you can use to automate the process of managing application component dependencies.

You can think of the CDI API as a black box that you make invocations ...

Get Pro Cloud Native Java EE Apps: DevOps with MicroProfile, Jakarta EE 10 APIs, and Kubernetes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.