Chapter 4. Learning Context Dependency Injection
Chapter 3, Beginning Java EE 6 – EJBs, was a challenging chapter, since we had to cover lots of ground, including Java Enterprise enhancements and Maven-specific configuration. If you are still a Maven non-believer, in this chapter, we will give you one more chance to embrace this amazing framework.
This chapter discusses Contexts and Dependency Injection (CDI), which is a new addition to the Java EE specification as of Java EE 6. It provides several benefits that were missing to Java EE developers, such as allowing any JavaBean to be used as a JSF managed bean, including stateless and stateful session beans.
Some of the topics covered in this chapter include:
- What is Context Dependency Injection ...