Guice is a lightweight IOC container developed by Google. It has the following features:
1. Fast. It is said that it is 100 times faster than spring.
2. No configuration file is required. The annotation of jdk5.0 is used to describe component dependencies, which is simple and supports compiler check and refactoring.
3. Simple and few codes
The official version of guice 3.0 is released ,:
- Guice-3.0.zipCore & Extension jars. 866kb
- Guice-3.0-src.zipSources, tests, dependencies and javadoc. 23.8 MB
- Guice-3.0-no_aop.jarCore Without AOP, suitable for Android. 470kb
Specific improvements:
- JSR 330 support
- New persistent Extension
- Toconstructor binding
- Better osgi support
- New Method in Binder: requireexplicitbindings & disablecircularproxies
- Struts2 support
See http://code.google.com/p/google-guice/wiki/Guice30 for details
This article is the use of b3log solo from the simple design of the art of the original article: http://88250.b3log.org/google-guice-3-0.html