Here are three articles that explain how to use CDI.  I am posting them as much for me as anyone who wants to learn about CDI

CDI Dependency Injection

CDI Dependency Injection – Tutorial II – Annotation Processing and Plugins – Java EE

CDI AOP Tutorial: Java Standard Method Interception Tutorial – Java EE