Guice 3.0 发布:Java轻量级依赖注入框架(IOC)
程序员文章站
2022-03-12 23:01:13
...
Guice 3.0发布了!包含非常多的新功能。
Guice是一个轻量级,基于Java5(主要运用泛型与注释特性)的依赖注入框架(IOC)。
Guice非常小而且快。Guice是类型安全的,它能够对构造函数,属性,方法(包含任意个参数的任意方法,而不仅仅是setter方法)进行注入。
重点新功能:
•JSR 330 support
•New Persist extension
•ToConstructor Bindings
•Better OSGi support (and generally improved support for multiple classloaders)
•New methods in Binder: requireExplicitBindings & disableCircularProxies
•Much simpler stack traces when AOP is involved
•Exact duplicate bindings are ignored (instead of an exception being thrown)
•Repackaged cglib, asm & guava classes are now hidden from IDE auto-imports
•Source can be built with Maven
•General extension & SPI improvements:
详细更新信息:http://www.theserverside.com/discussions/thread.tss?thread_id=62099
下载地址:http://code.google.com/p/google-guice/downloads/list
下一篇: CSS设计的一些原则