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