`
javasalatu
  • 浏览: 724993 次
  • 性别: Icon_minigender_2
  • 来自: 北京
博客专栏
96df99eb-e89d-3228-9c8e-967fc745ec52
程序员的自我经营之道
浏览量:7710
文章分类
社区版块
存档分类
最新评论

JSR 299 建议草案第二版已提交

 
阅读更多

昨天 Gavin King 提交了 JSR 299 (Contexts and Dependency Injection for the Java EE platform)的第二个建议草案 给 JCP。相比上一个建议草案,主要有如下四个大的修订:

  1. 在依赖注射注解(annotation)上全面采用 JSR 330
  2. 在部署类型上使用 @alternative 代替了原来的 @Production / @Standard
  3. 移除了动态注册事件观察者的能力
  4. 对 EJB Session Beans 进行构造器注射

从使用者的角度上看,最大的改变就是可以对 Bean 构造器、初始化方法以及字段使用 @Inject 注解进行依赖注射。另外一些小的修改(比如 @Named 也作为一种限定器)详见当前版本的 JSR 299 草案。另外,JSR 330 投票应该是全票通过了。

PS. JSR 330 投票结果:

JSR #330
Dependency Injection for Java
Public Review Ballot

These are the final results of the Public Review Ballot for JSR #330. The Executive Committee for SE/EE has approved this ballot.

Votes

SE/EE
Apache Software Foundation Yes
Eclipse Foundation, Inc Yes
Ericsson AB No Vote
Fujitsu Limited No Vote
Google Inc. Yes
Hewlett-Packard Yes
IBM Yes
Intel Corp. Yes
Keil, Werner Yes
Lea, Doug Yes
Nortel No Vote
Oracle Yes
RedHat No Vote
SAP AG No Vote
SpringSource Yes
Sun Microsystems, Inc. Yes

Icon Legend
Yes Yes
No No
Abstain Abstain
Not voted Not voted
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics