2007-04-09
Google Guice入世(转 附带一Guice1.0的简单测试代码)
关键字: new,guice,google,composite
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.
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公司的Bob lee开发的轻量级IoC容器,其特点是:
1、速度快,号称是spring的100倍速度
2、无配置文件,实用JDK5.0的annotation描述组件依赖,简单,而且有编译器检查和重构支持
3、简单,代码量很少
发表评论
最近加入圈子
最新评论
-
Spring中文开发手册下载
:idea: :idea: :idea: : ...
-- by xwsoft -
Spring中文开发手册下载
谢了~~
-- by zhengbin917943 -
Spring中文开发手册下载
谢了分享~~~~~~~
-- by steed_ns -
使用DOM技术操纵文档
谢谢分享
-- by xms_999 -
Guice 1.0 手册 (附带一类 ...
垃圾,严重鄙视抄袭! :shock: :shock:
-- by samuelyuan







评论排行榜