| Google Guice | |
|---|---|
| Developer | |
| Stable release | |
| Repository | github |
| Written in | Java |
| Type | Dependency injection framework |
| License | Apache License 2.0 |
| Website | github |
Google Guice (pronounced like "juice")[2] is anopen-sourcesoftware framework for theJava platform developed byBob Lee and Kevin Bourrillion atGoogle and released under theApache License. It provides support fordependency injection usingannotations to configure Java objects.[3] Dependency injection is adesign pattern whose core principle is to separate behavior from dependency resolution.
Guice allows implementationclasses to be bound programmatically to aninterface, 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 18thJolt Award for best Library, Framework, or Component.[3][4]
Thiscomputer-library-related article is astub. You can help Wikipedia byexpanding it. |