File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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)
It's not a secret anymore!