Google Guice 4.2 发布,支持 Java 9 和 JPMS

栏目: 软件资讯 · 发布时间: 8年前

内容简介:Guice 4.2 已发布了,Guice 是 Google 开发的一个基于 Java 6 以上的轻量级依赖注入框架,目标是使开发和调试更容易,更快速。 主要更新内容: 支持 Java 9 和 JPMS  Multibindings(多重绑定)现在位于 Guice ...

Guice 4.2 已发布了,Guice 是 Google 开发的一个基于 Java 6 以上的轻量级依赖注入框架,目标是使开发和调试更容易,更快速。

主要更新内容:

  • 支持 Java 9 和 JPMS 

  • Multibindings(多重绑定)现在位于 Guice 的核心工件中。Multibindings 工件是空的,以防止在升级过程中造成混淆,并将在后续版本中删除。

  • 通过改变报告错误的方式提高 guice provisioning 约 20% 的性能。Guice 在 provisioning 期间将不再报告多个错误。

  • 改进绑定缺失的错误提醒。

  • 各种优化。

  • 新增 CheckedProviders 类。

  • 调整  Singletons(单例模式)的工作方式,不再依赖 ThreadLocals 和 WeakReferences 。

  • 新增 MapBinderBinding.getEntries(Iterable)

  • 弃用 ProvisionListener.ProvisionInvocation.getDependencyChain()

完整更新内容可查阅发行说明

Maven

Guice:

<dependency>
  <groupId>com.google.inject</groupId>
  <artifactId>guice</artifactId>
  <version>4.2.0</version>
</dependency>

Guice (No AOP):

<dependency>
  <groupId>com.google.inject</groupId>
  <artifactId>guice</artifactId>
  <version>4.2.0</version>
  <classifier>no_aop</classifier>
</dependency>

下载地址:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Art of Computer Programming, Volume 3

The Art of Computer Programming, Volume 3

Donald E. Knuth / Addison-Wesley Professional / 1998-05-04 / USD 74.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 3》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具