Google Guice

Google Guice
Developer(s)Google
Stable release
7.0.0 / May 12, 2023; 7 months ago (2023-05-12)
Repositorygithub.com/google/guice
Written inJava
TypeDependency injection framework
LicenseApache License 2.0
Websitegithub.com/google/guice Edit this on Wikidata

Google Guice (pronounced like "juice") is an open-source software framework for the Java platform developed by Bob Lee and Kevin Bourrillion at Google and released under the Apache License. It provides support for dependency injection using annotations to configure Java objects. Dependency injection is a design pattern whose core principle is to separate behavior from dependency resolution.

Guice allows implementation classes to be bound programmatically to an interface, then injected into constructors, methods or fields using an @Inject annotation. When more than one implementation of the same interface is needed, the user can create custom annotations that identify an implementation, then use that annotation when injecting it.

Being the first generic framework for dependency injection using Java annotations in 2008, Guice won the 18th Jolt Award for best Library, Framework, or Component.

See also


This page was last updated at 2024-01-29 08:39 UTC. Update now. View original page.

All our content comes from Wikipedia and under the Creative Commons Attribution-ShareAlike License.


Top

If mathematical, chemical, physical and other formulas are not displayed correctly on this page, please useFirefox or Safari