Guice42 (original) (raw)
Guice 4.2
Released February 28th, 2018
Maven
Guice:
com.google.inject guice 4.2.0Guice (No AOP):
com.google.inject guice 4.2.0 no_aopExtensions:
com.google.inject.extensions guice-${extension} 4.2.0Downloads
- Guice:guice-4.2.0.jar
- Guice (No AOP):guice-4.2.0-no_aop.jar
- Guice extensions are all directly downloadablefrom 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 #1081, #1075).
- Add support for multibindings with annotations in the Guice DaggerMethodScanner.