February 2024
Beginner to intermediate
316 pages
7h 21m
English
Contexts and Dependency Injection (CDI) is a powerful dependency injection framework that allows us to easily integrate different parts of our Jakarta EE applications. CDI beans can have different scopes, allowing their life cycle to be managed automatically by the Jakarta EE runtime. They can be easily injected as dependencies by using a simple annotation. CDI also includes an event mechanism to allow decoupled communication between different parts of our application.
In this chapter, we will cover the following topics:
Note
Code samples for this chapter can be found on GitHub at https://github.com/PacktPublishing/Jakarta-EE-Application-Development/tree/main/ch02_src ...
Read now
Unlock full access