• 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
  • 相关阅读:
    echarts 饼图
    vue echarts
    :style :class
    弹框弹出时禁止页面滚动
    2019-2-10 日记
    2019-1-27 日记
    2019-1-26 日记
    2019-1-3 日记
    2019-1-10 日记
    2019-1-2 日记
  • 原文地址:https://www.cnblogs.com/lanzhi/p/6469266.html
Copyright © 2020-2023  润新知