Java EE: Contexts and Dependency Injection
1h 44mAdvanced2018-05-16
Authors

Alex Theedom
Enterprise Developer, Published Author, Trainer
Course details
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).
Learning objectives
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
Learning objectives
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
Skills covered
Java EEBack-End Web DevelopmentJavaProgramming FoundationsOracleWeb DevelopmentSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the challenges
1. CDI Introduction
- 04 - What are dependency and coupling
- 05 - What is contexts and dependency injection (CDI)
- 06 - CDI configuration and use
2. CDI Beans
- 07 - What is a CDI bean
- 08 - How to use a CDI bean
- 09 - Bean lifecycle management
3. 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
4. Producers
- 15 - What are producer methods
- 16 - Producers in action
- 17 - Combine producers and qualifiers
- 18 - Disposer method for producers
5. 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
6. 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
7. Alternatives and @Vetoed Annotation
- 29 - What are alternatives
- 30 - What is the @Vetoed annotation
8. Scopes, Context, and JSF
- 31 - What are bean scopes and context
- 32 - CDI scopes and JavaServer Faces
Conclusion
- 33 - Next steps