This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring and Guice (DI Book)
 
Similar Threads
Who is responsible to create Action object?
Dependency Injection Usage
What is the leading DI framework at the moment?
Comparing Google Guice and Spring Ioc Containers
Guice vs Spring DI