aspose file tools*
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
Author

Spring and Guice (DI Book)

david tanu
Greenhorn

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.

thanks
sm
Dhanji Prasanna
author
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

http://twitter.com/dhanji
 
jQuery in Action, 2nd edition
 
subject: Spring and Guice (DI Book)