Guice3.0 發布:Java輕量級依賴注入框架(IOC)

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
【編輯推薦】