|
Guice (http://code.google.com/p/google-guice/) is a lightweight
dependency injection (DI) framework, alleviating the need for
hand-written factories or use of the Java "new" keyword.
Guice makes the provocative claim to being the new "new".
Guice differs from Spring in it's approach to DI -
Guice eschews XML configuration in favor of leveraging
Java's native type-safety via Java 5 annotations and generics.
But Guice need not necessarily be seen as a replacement
for Spring; Guice has built-in Spring integration.
In this presentation we will learn the basics of Guice,
it's API and object model, via simple code exercises.
We will also examine the options available to migrate
existing code bases to Guice.
This talks assumes basic familiarity with Java 5 annotations and
generics, as well as dependency injection.
|