From the course: Learning Java Enterprise Edition

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

CDI introduction

CDI introduction - Java EE Tutorial

From the course: Learning Java Enterprise Edition

Start my 1-month free trial

CDI introduction

- (Speaker) We're now going to move on to look at context dependency injection and how it effectively glues together layers within an application architecture, and provides an extensive and powerful range of services that are essential when developing modern enterprise applications. In this video, I will touch on the most important aspects of CDI including scope, injectability of objects, how the already powerful CDI API has been extended and some very convenient built-in features. Remember that earlier I talked about the different layers of a typical application, and in the previous video I talked about a presentation layer? Well, now I'm going to talk about how CDI is used across the presentation and business layer to make them work in unison. Okay, so let's get started. Java EE has one of the easiest to use and most extensible dependency injection frameworks out there. By default, almost all Java objects are injectable, all they need to do is comply with JSR299, and they are…

Contents