Managing and injecting dependencies into Java microservices using Contexts and Dependency Injection (CDI)
No ratings yet
Learn how to use Contexts and Dependency Injection (CDI) to manage scopes and inject dependencies into microservices.Login to enroll
Classes StartMay 11, 2021
Contexts and Dependency Injection (CDI) defines a rich set of complementary services that improve the application structure. The most fundamental services that are provided by CDI are contexts that bind the lifecycle of stateful components to well-defined contexts, and dependency injection that is the ability to inject components into an application in a typesafe way. With CDI, the container does all the daunting work of instantiating dependencies, and controlling exactly when and how these components are instantiated and destroyed.