This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Spring and Guice (DI Book) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Spring and Guice (DI Book)" Watch "Spring and Guice (DI Book)" New topic

Spring and Guice (DI Book)

david tanu

Joined: Jul 25, 2009
Posts: 8
Hi authors

What are the fundamental differences between Spring and Guice?

I know Spring is "fatter" compare to Guice.

Dhanji Prasanna
Ranch Hand

Joined: Aug 30, 2009
Posts: 38
Spring and Guice take slightly different approaches, historically. Spring has focused more on being a complete Enterprise Java stack, whereas Guice focuses purely on DI.

There are several comparisons around the web that get quite partisan, but mostly the difference has been that Guice's philosophy is around modularity and type safe configuration, and Spring's has traditionally been around flexibility and complete solutions for integration with third party libraries. Nowadays they both provide similar features and there is even a joint effort (JSR-330) between Google and SpringSource to standardize DI for Java.

Software Engineer at Google
I agree. Here's the link:
subject: Spring and Guice (DI Book)