image

CHAPTER14

Deconstructing Components: Java EE Contexts and Dependency Injection

The Java EE dependency injection service is like the ultimate delivery service for programming: whenever you need an instance of something, you can rely on Java EE dependency injection to get you the right one.

Properly entitled Contexts and Dependency Injection, or CDI for short, this is the state of the art for modularizing applications. Integrated with the Java EE platform, CDI provides many ways to decouple implementations of the elements of a Java EE application. It grew from a desire to make it easier to bring together web components with Enterprise Bean components, ...

Get Java EE 7: The Big Picture 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.