Manning Early
Access Program
Dependency Injection
EARLY ACCESS EDITION
Design patterns using Spring and Guice
Dhanji R. Prasanna

MEAP Release: February 2008
Softbound print: July 2009 (est.) | 375 pages
ISBN: 193398855X

Start Reading Dependency Injection today through the Manning Early Access Program
MEAP OPTIONS*
  MEAP + Ebook only - $29.99
  MEAP + Print book + Ebook Combo - $54.99
  Print book only - $49.99 (Not yet available for order)
* Download early chapters in PDF format! For more information, please see the MEAP FAQs page.
  About MEAP Release Date Estimates    

Table of Contents, MEAP Chapters & Resources

Table of Contents         Resources 
  • Chapter 1: Dependency Injection: What's all the hype? - FREE
  • Chapter 2: Time for some Injection - AVAILABLE
  • Chapter 3: Investigating Dependency Injection - AVAILABLE
  • Chapter 4: Building modular applications - AVAILABLE
  • Chapter 5: Scope: objects and their state - AVAILABLE
  • Chapter 6: Advanced scoping and pitfalls - AVAILABLE
  • Chapter 7: From birth to death: object lifecycle - AVAILABLE
  • Chapter 8: Managing your object’s behavior - AVAILABLE
  • Chapter 9: Designing managed objects - AVAILABLE
  • Chapter 10: DI integration with other frameworks - AVAILABLE
  • Chapter 11: Dependency Injection in Action! - AVAILABLE
 

DESCRIPTION

Have you ever used the new keyword to create objects? Well, Dependency Injection is the new new!

In a traditional object-oriented application, a primary program controls secondary pieces of code, such as classes in a module, library, or framework. Dependency Injection (DI) is a technique that inverts this control, using an external mechanism to insert—or inject—a reference to an implementation of a service into an object. This allows you to build complex OO applications in a more testable, maintainable, and business-focused manner.

With DI, your code doesn't require expensive factories and repetitive boilerplate, making for robust, scalable architecture. As a developer, you can focus on your core application logic and move infrastructure and architecture concerns where they belong—out of your code and into the framework's domain.

Dependency Injection is a thorough examination of this core concept for building applications in any object-oriented language or framework. This book explores Dependency Injection, sometimes called Inversion of Control, in fine detail with numerous practical examples. In it, you'll learn to apply various techniques, focusing on their strengths and limitations, with a particular emphasis on pitfalls, corner-cases, and best practices. This book covers the full range of architectural idioms as they relate to DI: from Injection, Scope, and Lifecycle to Loose Coupling and AOP Interception.

This book is written for developers and architects who want to understand Dependency Injection and successfully leverage popular DI technologies such as Spring, Google Guice, PicoContainer, and many others. This book requires a working knowledge of object-oriented programming in Java, Ruby, or C#.

About the Author

Dhanji R. Prasanna is a software engineer at Google and contributes to Google Guice, the MVEL expression language, Google Wave, and a bunch of other cool open source projects. Dhanji has previously sprung with Spring, punted with PicoContainer, and consulted for various projects on Java architecture and dependency injection. Both inside Google and previously as a consultant at ThoughtWorks. Dhanji's next open source effort involves a rockin', new approach to Java web development.

WHAT REVIEWERS ARE SAYING

“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

About the Early Access Version

This Early Access version of Dependency Injection enables you to receive new chapters as they are being written. You can also interact with the authors to ask questions, provide feedback and errata, and help shape the final manuscript on the Author Forum

Want to learn More?

Sign up to read more content when it is released and to receive news about this book.