Samiksha Jaiswal (Editor)

Google Guice

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Google

Written in
  
Java

Development status
  
Active

Operating system
  
Cross-platform

Stable release
  
4.1.0 / June 18, 2016 (2016-06-18)

Type
  
dependency injection framework

Google Guice (pronounced "juice") is an open source software framework for the Java platform released by Google 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.

References

Google Guice Wikipedia