aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes DI framework comparison Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "DI framework comparison" Watch "DI framework comparison" New topic
Author

DI framework comparison

Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
Hi,

I noticed in your TOC that you have mentioned Jacob Jenkov's Butterfly Container. I would have been like to have a chapter comparing the various DI frameworks available such as Spring, Guice, Butterfly

Thanks
Vedhas
Dhanji Prasanna
author
Ranch Hand

Joined: Aug 30, 2009
Posts: 38
Hello,

I had originally planned an appendix comparing them. However, both Spring and Guice are evolving very quickly and as these are the two primary contenders now (and maybe Seam), it is difficult to pin down specific areas where one is better than the other.

There is also a political side to comparing them, which is a bit of a hot-button issue. So I decided to avoid doing a tabular comparison. Instead I highlight the strengths of each framework by using it in examples where it shines over the other. I do not recommend or discourage any one framework in the book.

Jacob contributed an appendix describing his Butterfly container in some detail. He introduces some comparisons of his own in this appendix by way of explanation. However, by the time we published even Butterfly had changed quite a bit. So any sort of birds-eye comparison would have been unfair.

Dhanji.


Software Engineer at Google

http://twitter.com/dhanji
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DI framework comparison