The CDI (Contexts and Dependency Injection, JSR-299) support library contains support for injecting contextual references into any object. This is useful for integration of CDI in application managed objects or for integration in third-party frameworks. Injection based on for instance @EJB, @Resource, and @PersistenceContext becomes a one liner.

This is a key component for integrating Java EE dependency injection into several (web) frameworks since it allows Java EE dependency injection into regular objects.

Package overview:

Note: You need a Java EE 6 environment to use CDI.

Maven POM configuration

groupId artifactId
org.wamblee wamblee-support-cdi