Contexts and Dependency Injection 1.1 (JSR-346) is an update to Contexts and Dependency Injection
1.0 (JSR-299). A full changelog can be found in the issue tracker release notes for CDI 1.1.
Major changes include:
- @Disposes methods for producer fields
- The CDI class, which provides programmatic access
to CDI facilities from outside a managed bean
- Pass the qualifiers an event was fired with to the ObserverMethod
- Ability to veto beans declaratively using @Veto and @Requires
- Ability to access the BeanManager from the ServletContext
- Conversations in Servlet requests
- Application lifecycle events in Java EE
- Injection of Bean metadata into bean instances
- Programmatic access to a container provided Producer, InjectionTarget, AnnotatedType
- Ability to override attributes of a Bean via BeanAttributes
- Ability to process modules via ProcessModule
- Ability to wrap the InjectionPoint
- Ability to obtain Extension instances from BeanManager
- Injection of the ServletContext
- Access to beans.xml in ProcessModule
- Injection into enums