Jump to content

Google Guice

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Carl.antuar (talk | contribs) at 01:07, 14 October 2015 (Update link that was 404). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Google Guice
Developer(s)Google
Stable release
4.0.0 / April 29, 2015 (2015-04-29)
Repository
Written inJava
Operating systemCross-platform
Typedependency injection framework
LicenseApache License 2.0
Websitegithub.com/google/guice

Google Guice (pronounced "juice")[1] 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.[2] 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.[2][3]

See also

References

Further reading

  • Vanbrabant, Robbie (April 21, 2008), Google Guice: Agile Lightweight Dependency Injection Framework (1st ed.), Apress, p. 192, ISBN 978-1-59059-997-6