Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial

## 25 Introduction to Contexts and Dependency Injection for Java EE

This chapter describes Contexts and Dependency Injection for Java EE (CDI) which is one of several Java EE features that help to knit together the web tier and the transactional tier of the Java EE platform.

The following topics are addressed here:

- Getting Started

- Overview of CDI

- About Beans

- About CDI Managed Beans

- Beans as Injectable Objects

- Using Qualifiers

- Injecting Beans

- Using Scopes

- Giving Beans EL Names

- Adding Setter and Getter Methods

- Using a Managed Bean in a Facelets Page

- Injecting Objects by Using Producer Methods

- Configuring a CDI Application

- Using the @PostConstruct and @PreDestroy Annotations with CDI Managed Bean Classes

- Further Information about CDI

Copyright © 2017, Oracle and/or its affiliates. All rights reserved.