Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DI framework comparison

 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic