- Google Guice
Google Guice, or Guice for short (pronounced 'juice') is a lightweight
dependency injection framework fromGoogle , forJava 5 and later.Guice is distributed under the
open source Apache License .Guice uses "@interface" annotation to wire the beans which is easier than wiring beans with XML and faster than autowiring. Guice users find this easier and smaller compared to other frameworks.
Guice-like dependency injection, on the other hand, requires changes to the annotations, i.e. the source code, when you want to inject a different implementation of some service, and annotations require additional imports in the source code.Wiring with XML separates the configuration from the source code.
External links
* [http://code.google.com/p/google-guice/ google-guice - Google Code]
* [http://www.wideplay.com Extensions for Google Guice] including warp-persist (integration withHibernate ,JPA ,db4objects , [http://www.wideplay.com/dynamicfinders query automation] ) and [http://www.wideplay.com/warp::servlet warp-servlet] (extended servlet scopes)
Wikimedia Foundation. 2010.