Design patterns using Spring and Guice
Dhanji R. Prasanna
Foreword by Bob Lee
August 2009 | 352 pages
|$49.99||pBook + eBook (includes PDF, ePub, and Kindle)|
|$39.99||eBook only (includes PDF, ePub, and Kindle)|
|Browse all our mobile format eBooks.|
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.
- How to apply it (Understand it first!)
- Design patterns and nuances
- Spring, Google Guice, PicoContainer, and more
- How to integrate DI with Java frameworks
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.”
“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