-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Guice423
Googler edited this page Mar 19, 2020
·
1 revision
Released March, 19th, 2020.
Guice:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.2.3</version>
</dependency>
Guice (No AOP):
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>4.2.3</version>
<classifier>no_aop</classifier>
</dependency>
Extensions:
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-${extension}</artifactId>
<version>4.2.3</version>
</dependency>
- Guice: guice-4.2.3.jar
- Guice (No AOP): guice-4.2.3-no_aop.jar
- Guice extensions are all directly downloadable from this search page. Just click on the "jar" link for the appropriate extension.
- Java14 support (updated asm).
- Added
Injector.getElements
API, to expose all Element SPI types from the Injector. - Added
Injector.getAllMembersInjectorInjectionPoints
API, to expose injection points created by arbitrary members injection. - Added
getAlternateKeys
to Multibinder SPI types (MultibinderBinding
,MapBinderBinding
,OptionalBinderBinding
), to explicitly list the other keys these bindings are available as. - Scan for (and bind) @Provides-like methods in a consistent ordering, rather than relying on the non-deterministic Class.getDeclaredMembers ordering.
- Update
DaggerAdapter
to work with newer dagger code. - Fixed a subtle bug with eager singleton evaluation.
- Updated
@RequestScope
's scope annotation to the JSR330@Scope
, so it can be reused by non-Guice DI systems. - Clarified the error message when an injectable constructor is missing.
- Add deprecated overloads to various
Modules
methods, to make it clearer when calling them is unnecessary. - Added factory methods to
Modules
for common Binder configuration methods, to make it easier to configure them.
-
User's Guide
-
Integration
-
Extensions
-
Internals
-
Releases
-
Community