Introduction to CDI
All we need to do to take advantage of Contexts and Dependency Injection features
in our Web Application projects is to click on the checkbox labeled Enable Contexts
and Dependency Injection on the second page of the New Web Application wizard.
In most cases will want to use the JSF 2.0 framework as well, since typically CDI
applications use JSF as their user interface component framework.