Google Guice

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Google Guice
Developer(s) Google
Stable release 3.0.0 / March 24, 2011; 10 months ago (2011-03-24)
Development status Active
Written in Java
Operating system Cross-platform
Type dependency injection framework
License Apache License 2.0
Website code.google.com/p/google-guice/

Google Guice is an open source software framework for the Java platform released by Google under an Apache license. It provides support for dependency injection using annotations to configure Java objects.[1] Dependency injection is a design pattern whose core principle is to separate behavior from dependency resolution.

Guice allows implementation classes to be programmatically bound 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 [1][2].

Contents

[edit] See also

[edit] References

  1. ^ a b Guice (Google), Reviewed by Michael Yuan, retrieved 2010-04-09.
  2. ^ 18th Annual Jolt Award winners

[edit] Further reading

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages