At its core, CDI is an annotation-driven injection framework that minimizes the bulk of boilerplate code that developers have to write. It is designed to greatly increase productivity, testability, and the quality of business applications built on the Java platform. Any Java EE 6-compliant application server has the ability to deploy a CDI application.
To many, CDI is an "official" version of the popular Spring Framework, which not only modernizes some of the concepts popularized by Spring, but also standardizes them and bakes them into the core of enterprise Java—Java EE.
To learn more about CDI, visit the Weld website (http://sfwk.org/Weld). Weld is the reference implementation of the CDI specification.
This chapter assumes familiarity with CDI and does not attempt to introduce CDI basics. There are several excellent resources online about CDI, including the relevant sections in the official Java EE 6 tutorial (http://docs.oracle.com/javaee/6/tutorial/doc/giwhb...