CHAPTER 10

image

Contexts and Dependency Injection

In this chapter, we will discuss Contexts and Dependency Injection (CDI). CDI provides powerful services to glue the various tiers of the Java EE framework together. The first public draft of Java Contexts and Dependency Injection for the Java EE Platform, as defined in JSR 299, was made public in 2008. During the initial development phase, the JSR 299 specification was called Web Beans. After the specification was renamed to Contexts and Dependency Injection, the initial reference implementation was given the name Web Beans. The use of the same name, Web Beans, in two different contexts created some ...

Get Beginning EJB 3: Java EE 7 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.