`
wangpan80
  • 浏览: 104668 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Java IOC框架 挑战Spring

    博客分类:
  • Java
阅读更多

Guice 能够注入 constructors, fields 以及 methods (任何方法, 任意参数, 而不仅仅是setter方法), 同时Guice还支持自定义scopes, 循环依赖, 静态成员注入, 整合Spring, 以及AOP……

  Google 近日宣布发布 Guice。Guice, 发音为'juice', 是Google内部使用的 Java依赖注入框架。Guice新版本宣布已经完全支持annotations 以及 generics.

  Guice无配置文件,实用JDK5.0的annotation描述组件依赖,相比Spring更加简单。

  Guice 能够注入 constructors, fields 以及 methods (任何方法, 任意参数, 而不仅仅是setter方法), 同时Guice还支持自定义scopes, 循环依赖, 静态成员注入, 整合Spring, 以及AOP. 相比Spring拥有更加强大的功能.

  xwork2.0已经集成了Google guice容器。同时Google guice的速度比Spring快了10倍以上.

  Google guice在Google的很多项目中已经开始使用了很多个月了.

  现在你也可以开始使用Google guice:http://code.google.com/p/google-guice/

  Google guice是基于Apache License 2.0.

  对Google guice, 你是如何看待? 你使用过吗?

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics