Discover in live coding the killing feature of Contexts and Dependency Injection Java EE specification: portable extensions. After a short introduction to CDI advanced concept, I’ll show how a 3rd party framework can be integrated in your CDI stack.
In less than seven years of existence, Contexts and Dependency Injection (CDI) has become one of the major specifications in Java EE. CDI 1.1 and 1.2 proved to be the best solutions for naturally extending Java EE 7. After a fast presentation of advanced CDI concept such as SPI and portable extension, we’ll see in live coding how to integrate a third party framework in the CDI programming model. Using portable extension and with the help of Apache DeltaSpike and Arquillian, I’ll show in live coding how Dropwizard metrics can be integrated in the CDI programming model.