-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Guice42
Googler edited this page Jan 15, 2020
·
6 revisions
Released February 28th, 2018
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>
- 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.
- 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-abstract
to 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.
-
User's Guide
-
Integration
-
Extensions
-
Internals
-
Releases
-
Community