, or Guice
for short (pronounced 'juice') is a lightweight dependency injection
framework from Google
, for Java 5
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.