Weld 2 是一个全新的里程碑,2.0 将主要实现 JSR-346 规范,今天发布了首个 alpha 测试版本。
关于 JSR-346 的相关信息请看:
- Ability to access the CDI container from anywhere simply by calling CDI.current()
- Conversations in plain Servlet requests
- Application lifecycle events in Java EE
- Injection into enums
- Ability to override attributes of a Bean via BeanAttributes
- Ability to process modules and manipulate the content of the beans.xml file via ProcessModule
- Ability to wrap the InjectionPoint
- Injection of Bean metadata into bean instances
- Programmatic access to a container provided Producer, InjectionTarget, AnnotatedType
