Guice 4.0 - Beta 发布,基于Java5的依赖注入框架(IOC)

jopen 9年前

Guice是一个轻量级,基于Java5的泛型与注释特性(主要)的依赖注入框架(IOC)。

Guice是Google开发的一个轻量级依赖注入框架(IOC)。Guice非常小而且快,功能类似与Spring,但效率上网上文档显示是它的100倍,而且还提供对Servlet,AOP,Struts等框架的支持

下载

文档

  • 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.