JavaZone 2009 - Title: JSR-330 as implemented by Google Guice
Before Guice, the Java programming language subjected developers to a false dichotomy:
1. Use "new" to write concise but tightly coupled code. If you need more abstraction later, you'll have to update all of the N callers.
or
2. Write a factory, so you can easily change the implementation later. You might end up doing unnecessary work, not to mention make your code harder to read.
Guice leverages recently added language features to enable the best of both words: abstraction without the boilerplate! JSR-330's @Inject is the new new. Start off with coupled and straightforward code, and if you need more flexibility down the road, you can change your code in one place without having to update N callers.
This speakers will compare factories and service locators with dependency injection, with and without Guice. Then he'll show you how to use Guice to make your code more modular, readable, and testable than ever before. All you need is a working knowledge of the language.
Bob (crazy bob) Lee
Bob Lee created the Jolt-award-winning Google Guice framework and now leads JSR-330 (Dependency Injection for Java). He represents Google on the JCP Executive Committee. Bob is also involved with JSR-166 (java.util.concurrent), Project Coin (small language changes), and JSR-294 (Java Modules).
