Daily Archives: January 21, 2008

Creating Google Guice Modules with Java 6’s ServiceLoader

Google Guice is a lightweight dependency injection framework for Java 5 (or later), which is explained here very well. To actually map an interface to its implementation, you write Modules (by implementing Module interface or extending AbstractModule), containing code like:

Posted in guice, java
January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031