Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "DI framework comparison" Watch "DI framework comparison" New topic

DI framework comparison

Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445

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

Dhanji Prasanna
Ranch Hand

Joined: Aug 30, 2009
Posts: 38

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.


Software Engineer at Google
I agree. Here's the link:
subject: DI framework comparison
It's not a secret anymore!