Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 44787

Guice 4.1 发布,Google 的 IoC 容器

$
0
0

Guice 4.1 发布了,Guice 是 Google公司开发的轻量级IoC容器,其特点是:

1、速度快,据说是Spring的100倍速度
2、无需配置文件,实用JDK5.0的annotation描述组件依赖,简单,而且有编译器检查和重构支持
3、简单,代码量很少

改进日志如下:

内核改进

  • @ProvidedBy supports javax.inject.Provider (issue #808)

  • Reduced the number of lines in error messages.

  • Fix potential rare deadlock when there are multi-threaded cycles in singletons.

  • Allow members injection to happen in parallel if it was requested from different threads.

  • Make disableCircularProxies more strict.

  • Updated the internal cglib to 3.2.0 to allow Guice to be used with signed jars.

  • Various performance optimizations.

AssistedInject

  • Skip static methods in interfaces (for Java8 compatibility) (issue #937)

了解更多信息,查看完整发布说明

下载地址:


Viewing all articles
Browse latest Browse all 44787

Trending Articles