Jakarta Contexts and Dependency Injection (CDI) is certainly one of the most important APIs for the Jakarta EE platform. In version 2.0, it also works with Java SE.
Nowadays, CDI has an impact on many other APIs in the Jakarta EE platform as said in an interview for Java EE 8 – The Next Frontier project:
– Ed Burns, JSF Spec Lead
There are a lot of new features in CDI 2.0. This recipe will cover observer ordering to give you a quick start.