Dependency Injection
Design patterns using Spring and Guice
Dhanji R. Prasanna
Foreword by Bob Lee

August, 2009 | 352 pages
ISBN: 193398855X
$49.99 Softbound print book - (includes free ebook)
$39.99 Ebook in PDF, epub and Kindle—your purchase includes all three formats!
Browse all our mobile format ebooks.

 

Resources

 Look Inside Resources Downloads

DESCRIPTION

In object-oriented programming, a central program normally controls other objects in a module, library, or framework. With dependency injection, this pattern is inverted—a reference to a service is placed directly into the object which eases testing and modularity. Spring or Google Guice use dependency injection so you can focus on your core application and let the framework handle infrastructural concerns.

Dependency Injection explores the DI idiom in fine detail, with numerous practical examples that show you the payoffs. You'll apply key techniques in Spring and Guice and learn important pitfalls, corner-cases, and design patterns. Readers need a working knowledge of Java but no prior experience with DI is assumed.

WHAT'S INSIDE

About the Author

Dhanji R. Prasanna is a Google software engineer who works on Google Wave and represents Google on several Java expert groups. He contributes to Guice, MVEL, and other open source projects.

WHAT REVIEWERS ARE SAYING

“Not only did the author take a great care to explain the concepts around dependency injection, but the language itself was very professional and with a great sense of humour. I definitely learnt a lot - dependency injection, design patterns around it, Spring Framework and finally Guice as well as a bunch of new words and phrases in English. The reading was worth its time and I'm certainly going to refer to the book's chapters every now and then.”
Jacek Laskowski, Notatnik Projektanta Java EE

“If you do large scale java apps, you probably want to have someone on the team have this book.”
Michael Neale

“After finishing the book I am sure that this book will become the book of reference for dependency injection. Pretty much every major problem I have dealt with in the development of Butterfly Container is discussed in this book. I am rarely impressed by the quality of technical books, but this book definitely stands out from the crowd.”
Jakob Jenkov, Jenkov Aps, Jenkov.com