Guice 4.0 - Beta 發布,基于Java5的依賴注入框架(IOC)
Guice是一個輕量級,基于Java5的泛型與注釋特性(主要)的依賴注入框架(IOC)。
Guice是Google開發的一個輕量級依賴注入框架(IOC)。Guice非常小而且快,功能類似與Spring,但效率上網上文檔顯示是它的100倍,而且還提供對Servlet,AOP,Struts等框架的支持
下載
- guice-4.0-beta.zip core & extension jars. 866KB
- guice-4.0-beta-no_aop.jar core without AOP, suitable for Android. 470KB
文檔
- Javadoc API (Pending release)
- API Changes from 3.0 to 4.0, by JDiff (Pending release)
新的特性
- List of changes pending release.
Migrating from Guice 2.0
See the JDiff change report for complete details.
JSR 330
Guice 4.0 requires JSR 330 on your classpath. This is the javax.inject.jar included in the guice download.
com.google.inject.internal
Many things inside com.google.inject.internal changed and/or moved. This is especially true for repackaged Guava (formerly Google Collections), cglib, and asm classes. All these classes are now hidden from IDE auto-import suggestions and are in new locations. You will have to update your code if you relied on any of these classes.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!