`

2009依赖注入DI之争: Web beans~JSR299和Spring& Guice~JSR330

阅读更多

2009年DI之争进入白热化阶段。

 

  • 2009年2月份,以红帽Gavin King负责的、在Web beans基础上的面向Java EE平台的上下文与依赖注入规范JSR299获得JCP通过,SpringSource、Nortel弃权,其他都投赞成票。最终融合JSR330后12月份发布。
  • Google guice和SpringSource spring提出JSR330(面向Java的依赖注入)规范,开始打架了。
  • Gavin King不得为现有的庞大的spring和guice用户基础让步,采用了JSR330的一样的注解。
  • 2009年6月份,以Google guice和SpringSource spring为基础的JSR330(面向Java的依赖注入)获得通过,redhat和Nortel弃权,其他都投赞成票。10月份发布。

个人认为,JSR299和JSR330最终达成统一,JSR330最终采用JSR299的注解,是件好事。

但到底采用哪种方式更好?

  • JSR299是针对JAVA EE开发的,参考实现为Weld;其依赖注入部分的注解也采用JSR330规范。
  • JSR330是针对JAVA SE开发的,目前只有几个简单实用的 annoations;目前Spring,Guice已经开始兼容该规范;
  • JSR330规范并未按 JSR 惯例发布规范文档,只发布了规范 API 源码;
1
1
分享到:
评论

相关推荐

    spring-beans-5.0.10.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.0.10.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.0.10.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.0.10.RELEASE...

    spring-beans-5.2.0.RELEASE-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.2.0.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.2.0.RELEASE-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.2.0....

    spring-beans-5.2.0.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.2.0.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.2.0.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.2.0.RELEASE; ...

    webbeans--jsr-299

    webbeans gavin king 力作

    spring-beans-5.1.3.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.1.3.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.1.3.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.1.3.RELEASE; ...

    spring-beans-4.3.12.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-4.3.12.RELEASE.pom; 包含翻译后的API文档:spring-beans-4.3.12.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:4.3.12.RELEASE...

    spring-beans-5.2.7.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.2.7.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.2.7.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.2.7.RELEASE; ...

    spring-beans-5.0.5.RELEASE-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.0.5.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.0.5.RELEASE-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.0.5....

    spring-beans-5.3.7-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.7.pom; 包含翻译后的API文档:spring-beans-5.3.7-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.3.7; 标签:spring...

    spring-beans-5.2.15.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.2.15.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.2.15.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.2.15.RELEASE...

    spring-beans-5.3.7-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.7.pom; 包含翻译后的API文档:spring-beans-5.3.7-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.3.7; 标签:springframework、...

    spring-beans-5.3.10-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.10.pom; 包含翻译后的API文档:spring-beans-5.3.10-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.3.10; 标签:springframework...

    spring-beans-5.3.10-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.10.pom;包含翻译后的API文档:spring-beans-5.3.10-javadoc-API文档-中文(简体)-英语-对照版.zip;Maven坐标:org.springframework:spring-beans:5.3.10;标签:spring、...

    spring-beans-5.3.15-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.15.pom; 包含翻译后的API文档:spring-beans-5.3.15-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.3.15; 标签:spring、beans、...

    spring-beans-5.0.8.RELEASE-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.0.8.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.0.8.RELEASE-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.0.8....

    spring-beans-5.0.5.RELEASE-API文档-中文版.zip

    赠送Maven依赖信息文件:spring-beans-5.0.5.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.0.5.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-beans:5.0.5.RELEASE; ...

    spring-beans-5.3.15-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.15.pom; 包含翻译后的API文档:spring-beans-5.3.15-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.3.15; 标签:spring...

    spring-beans-5.1.3.RELEASE-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.1.3.RELEASE.pom; 包含翻译后的API文档:spring-beans-5.1.3.RELEASE-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.1.3....

    spring-beans-5.3.12-API文档-中英对照版.zip

    赠送Maven依赖信息文件:spring-beans-5.3.12.pom; 包含翻译后的API文档:spring-beans-5.3.12-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标:org.springframework:spring-beans:5.3.12; 标签:spring...

    springIOC核心组件分析.vsdx

    spring-core:核心模块 依赖注入IOC和DI的最基本实现 spring-beans:Bean工厂与装配 spring-context:上下文,即IOC容器 spring-context-support:对IOC的扩展,以及IOC子容器 spring-context-indexer:类管理组件和...

Global site tag (gtag.js) - Google Analytics