© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. Juneau, T. TelangJava EE to Jakarta EE 10 Recipeshttps://doi.org/10.1007/978-1-4842-8079-9_11

11. Jakarta Contexts and Dependency Injection

Josh Juneau1   and Tarun Telang2
(1)
Hinckley, IL, USA
(2)
Hyperbad, India
 
One of the most important specifications in the Jakarta EE platform is Jakarta Contexts and Dependency Injection. As stated on the cdi-spec.​org site, it is a suite of complementary services that can improve the overall structure and design of code. The specification provides the following features for Jakarta EE and Java SE applications, as per the cdi-spec.​org:
  • Contextual objects with a well-defined life cycle providing multiple scopes of availability ...

Get Java EE to Jakarta EE 10 Recipes: A Problem-Solution Approach for Enterprise Java 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.