25. Contexts and Dependency Injection for Java EE: Advanced Topics

This chapter describes more advanced features of Contexts and Dependency Injection for Java EE (CDI). Specifically, it covers additional features CDI provides to enable loose coupling of components with strong typing, in addition to those described in Section 23.2, “Overview of CDI.”

The following topics are addressed here:

Image Packaging CDI Applications

Image Using Alternatives in CDI Applications

Using Producer Methods, Producer Fields, and Disposer Methods in CDI Applications

Using Predefined ...

Get The Java EE 7 Tutorial: Volume 1, Fifth Edition 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.