Java EE 8 Cookbook
上QQ阅读APP看书,第一时间看更新

Using CDI to inject context and dependency

Context and Dependency Injection for Java EE (CDI) is one of the most important APIs under the Java EE umbrella. Introduced in Java EE 6, it now has a big influence over many other APIs.

In the recipe, you will learn how to use CDI in a couple of different ways and situations.