Skip to Main Content
Java EE 7 Recipes: A Problem-Solution Approach
book

Java EE 7 Recipes: A Problem-Solution Approach

by Josh Juneau
May 2013
Intermediate to advanced content levelIntermediate to advanced
748 pages
20h 58m
English
Apress
Content preview from Java EE 7 Recipes: A Problem-Solution Approach

CHAPTER 12

image

Contexts and Dependency Injection

One of the most important features in Java EE is Contexts and Dependency Injection (CDI). CDI helps bind the web tier and the business logic or transactional tier of the Java EE platform together. CDI makes it easy to expose business objects for use within JSF web views so that developers can directly bind JSF view widgets to public JavaBean members and methods. It also provides facilities that make it possible to inject JavaBean classes and resources into other Java objects in a type-safe and efficient manner.

CDI is architected from two methodologies: contexts and dependency injection. Contexts

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Java EE 7

Beginning Java EE 7

Antonio Goncalves
Beginning EJB 3: Java EE 7 Edition

Beginning EJB 3: Java EE 7 Edition

Jonathan Wetherbee, Chirag Rathod, Raghu Kodali, Peter Zadrozny

Publisher Resources

ISBN: 9781430244257Purchase book