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

來源:互聯網
上載者:User

昨天 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
Eclipse Foundation, Inc
Ericsson AB
Fujitsu Limited
Google Inc.
Hewlett-Packard
IBM
Intel Corp.
Keil, Werner
Lea, Doug
Nortel
Oracle
RedHat
SAP AG
SpringSource
Sun Microsystems, Inc.

Icon Legend
Yes
No
Abstain
Not voted

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.