请输入您要查询的百科知识:

 

词条 Google Guice
释义

  1. See also

  2. References

  3. Further reading

{{Redirect|Guice|the American football running back|Derrius Guice}}{{Infobox Software
| name = Google Guice
| logo =
| screenshot =
| caption =
| developer = Google
| latest release date = {{release date|2016|06|18}}
| programming language = Java
| genre = Dependency injection framework
| license = Apache License 2.0
| repo = {{URL|https://github.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

{{Portal|Free and open-source software|Java (programming language)}}
  • Spring Framework

References

1. ^google-guice - Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 5 and above, brought to you by Google. - Google Project Hosting. Code.google.com (2007-03-23). Retrieved on 2013-11-24.
2. ^Guice (Google), Reviewed by Michael Yuan, retrieved 2010-04-09.
3. ^18th Annual Jolt Award winners

Further reading

{{refbegin}}
  • {{citation

| first1 = Robbie
| last1 = Vanbrabant
| date = April 21, 2008
| title = Google Guice: Agile Lightweight Dependency Injection Framework
| edition = 1st
| publisher = Apress
| page = 192
| isbn = 978-1-59059-997-6
| url = http://www.apress.com/9781590599976
}}{{refend}}{{Google Inc.}}{{compu-library-stub}}

4 : Aspect-oriented programming|Extreme programming|Software testing|Google software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/24 8:24:06