Thursday, December 27, 2007

Dependency Injection with Guice

I'd heard about Guice being a Dependency Injection framework, and was curious to see how it differed from Spring.

One big difference seems to be that Guice, being Java code (plus annotations) is strongly typed. It can check dependencies at compile-time.

Bob Lee also mentions that ease of testing is a big motivator for Guice. I wonder how that limits Guice vs. Spring, for example.

The talk also mentions similarities to Seam. It looks like features from Seam and Guice are going to be blended into Web Beans.

Looks like playing with it is the next thing to do...

No comments: