Skip to main content

Contexts and Dependency Injection

  • Chapter
Introducing Java EE 7

Abstract

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 and makes it easy to utilize resources and objects throughout an application. 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Josh Juneau

About this chapter

Cite this chapter

Juneau, J. (2013). Contexts and Dependency Injection. In: Introducing Java EE 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5849-0_7

Download citation

Publish with us

Policies and ethics