mirror of
https://github.com/google/guice.git
synced 2026-10-21 03:21:59 +00:00
Page:
Guice510
Pages
3rdPartyModules
AOP
AppsThatUseGuice
AssistedInject
Avoid Injecting Closable Resources
AvoidCallingProvideMethodsAndInjectConstructors
AvoidConditionalLogicInModules
AvoidStaticState
BeCarefulAboutIoInProviders
BestPractices
BindingAnnotations
BindingResolution
Bindings
Bootstrap
BoundFields
BuiltInBindings
ClassLoading
CustomInjections
CustomScopes
CyclicDependencies
DocumentPublicBindings
DontReuseAnnotations
Errors
ExtendingGuice
ExtensionSPI
ExternalDocumentation
FrequentlyAskedQuestions
GettingStarted
GoogleAppEngine
Grapher
Guice10
Guice20
Guice30
Guice40
Guice41
Guice42
Guice421
Guice422
Guice423
Guice500
Guice501
Guice510
Guice600
Guice700
GuiceDiscussions
GuiceInKotlin
GuicePersist
GuicePersistMultiModules
Home
InjectOnlyDirectDependencies
InjectingProviders
InjectingTheInjector
InjectionPoints
Injections
InspectingModules
InstanceBindings
JPA
JSR330
JustInTimeBindings
KeepConstructorsHidden
LinkedBindings
MentalModel
MinimizeMutability
ModulesShouldBeFastAndSideEffectFree
Motivation
Multibindings
OSGi
OptionalAOP
OrganizeModulesByFeature
PreferAtProvides
ProviderBindings
ProvidesMethods
RestrictedBindingSource
Scopes
ServletExtensionSPI
ServletModule
ServletRegexKeyMapping
Servlets
SpringComparison
Struts2Integration
ThrowingProviders
ToConstructorBindings
Transactions
UntargettedBindings
UseNullable
Clone
2
Guice510
Copybara-Service edited this page 2022-01-31 07:36:27 -08:00
Guice 5.1.0
Released Jan, 24th, 2022.
Maven
Guice:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
</dependency>
Extensions:
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-${extension}</artifactId>
<version>5.1.0</version>
</dependency>
Downloads
- Guice: guice-5.1.0.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 5.0.1
This minor release adds support for Java 17.
Details
See https://github.com/google/guice/compare/5.0.1...5.1.0 for a complete list of changes.
Guice Core
- Java 17 support: updated asm version and fixed unsafe class defining to work with Java 17.
- Support
TYPE_USEtype@Nullableannotations. - Improved multibinding to avoid unnecessary linked binding.
- Added API to access
InterceptorBindingsin SPI. - Removed
COMPLETEoption forguice_include_stack_tracesflag.
AssistedInject
- Fixed JDK17+ private lookup behavior.
Dagger Adapter
- Instantiate modules if necessary in
DaggerAdapter.
Servlet
- Fixed bug in
UriEncoderthat interpreted and stripped numeric prefixes.
Migrating from 5.0.1
See the JDiff change report for complete details.
-
User's Guide
-
Integration
-
Extensions
-
Internals
-
Releases
-
Community