Java EE: Contexts and Dependency Injection

Java EE: Contexts and Dependency Injection

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 43m | 250 MB

Contexts and Dependency Injection (CDI) is a set of services that can help to enhance the behavior of your applications. In this course, learn about CDI and how to use it in your Java EE application. Discover how to configure an environment for CDI. Learn about CDI beans, how to use them, and what it means to have a lifecycle. Then, learn about the different features of CDI, including qualifiers, producers, events, observers, and interceptors. Finally, the course covers CDI scopes and JavaServer Faces (JSF).

Topics include:

  • What is contexts and dependency injection (CDI)?
  • Using a CDI bean
  • Bean lifecycle management
  • Creating and configuring qualifiers
  • Implementing producer methods
  • Combining producers and qualifiers
  • Using events, observers, and interceptors
  • Bean scopes and context
Table of Contents

Introduction
1 Welcome
2 What you should know
3 Using the challenges

CDI Introduction
4 What are dependency and coupling
5 What is contexts and dependency injection CDI
6 CDI configuration and use

CDI Beans
7 What is a CDI bean
8 How to use a CDI bean
9 Bean lifecycle management

Qualifiers
10 What are qualifiers
11 Advanced qualifiers
12 Combine qualifiers
13 Challenge – Disambiguate by publication type and language
14 Solution – Disambiguate by publication type and language

Producers
15 What are producer methods
16 Producers in action
17 Combine producers and qualifiers
18 Disposer method for producers

Events and Observers
19 What are events and observers
20 Fire an event and observe it
21 Async events
22 Challenge – Create a log event system
23 Solution – Create a log event system

Interceptors and Priority
24 What are interceptors
25 Implement a logging use case
26 Intercepting constructors
27 Challenge – Create an interceptor
28 Solution – Create an interceptor

Alternatives and @Vetoed Annotation
29 What are alternatives
30 What is the @Vetoed annotation

Scopes Context and JSF
31 What are bean scopes and context
32 CDI scopes and JavaServer Faces

Conclusion
33 Next steps