Weld 1.1.4.Final 发布了,Weld 是一个实现了 JSR-299 的框架。
JSR 299 是 Java EE 6 中非常重要的部分,提供了如下功能:
1. 类型安全的依赖注入
2. 注入对象的上下文生存周期管理
3. 事件提醒模型
4. 绑定拦截器通过用户自定义的注解(Annotation)
5. 类型安全的装饰器
6. 为整合第三方框架提供了完整的 SPI 支持
7. 与 JSF,Servlet / JSP 进行了整合
8. 对 JSF 提供长会话(Conversation)上下文支持
新版本最终修复了 @Specializes 的 bug:
- WELD-912 - Specializing beans in different bean archives does not work
还包含其他方面的一些问题:
- WELD-617 - Can not find beans when deploying compressed Archive to Tomcat
- WELD-802 - Specialization of Beans registered through portable extension does not work.
- WELD-892 - Calling session-scoped components from session initialized observer goes into infinite loop
- WELD-904 - Observer method inheritance broken
- WELD-1010 - @PreDestroy method invoked twice
完整发行说明请看: https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12310891&version=12318550
