Releases
Guice 4.2
登录后可跨设备保存划线和私人笔记登录
Guice 4.2
Released February 28th, 2018
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>Extensions:
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-${extension}</artifactId>
<version>4.2.0</version>
</dependency>Downloads
- Guice: guice-4.2.0.jar
- Guice (No AOP): guice-4.2.0-no_aop.jar
- Guice extensions are all directly downloadable from this search page. Just click on the "jar" link for the appropriate extension.
Docs
Changes since Guice 4.2
- Java 9 and JPMS support
- Multibindings are now in the Guice core artifact. The multibindings artifact is empty to prevent confusion during upgrading and will be removed in a later release.
- Improve the performance of guice provisioning (by about 20%) by changing the way errors are reported. Guice will no longer report multiple errors during provisioning (Guice still reports multiple errors during injector creation).
- Better error messages for a missing binding.
- Various optimizations.
AbstractModule.configure()is non-abstractto allow modules with only@Provides/@ProvidesIntoSet/... methods.- Add a CheckedProviders class.
- Change the way Singletons work to not rely on ThreadLocals nor WeakReferences.
- Add
MapBinderBinding.getEntries(Iterable). - Deprecate
ProvisionListener.ProvisionInvocation.getDependencyChain(). It is scheduled for deletion in 4.3. - Ensure that Struts interceptors are populated even if they are created after the injector (Fixes devlive-community/knowforge#1081, devlive-community/knowforge#1075).
- Add support for multibindings with annotations in the Guice DaggerMethodScanner.
评论
登录后参与评论
正在加载评论…
KnowForge