Dependency Injection: with examples in Java, Ruby, and C# Dhanji Prasanna
HIGHLIGHT The "Dependency Injection" (DI) pattern is the primary idea behind the enormously popular Spring Framework and Google Guice. This book shows Java developers how to effectively use DI in multiple frameworks and contexts and presents the most current technologies, techniques and best practices. DESCRIPTION Dependency Injection is an in-depth guide to the current best practices for using the Dependency Injection pattern-the key concept in Spring and the rapidly-growing Google Guice. It explores Dependency Injection, sometimes called Inversion of Control, in fine detail with numerous practical examples. Developers will learn to apply important techniques, focusing on their strengths and limitations, with a particular emphasis on pitfalls, corner-cases, and best practices. 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. The book explores many small examples of anchor concepts and unfolds a larger example to show the big picture. Written primarily from a Java point-of-view, this book is appropriate for any developer with a working knowledge of object-oriented programming in Java, Ruby, or C#. KEY POINTS * Both highly technical and highly practical * Numerous examples in multiple languages, frameworks, and contexts * The only book available that covers DI from a framework-agnostic perspective; most concentrate only on Spring. MARKET INFORMATION Dependency Injection is one of the most important ideas of the past decade for object-oriented developers, but it isn't widely understood at a technical level. DI has increased in importance as developers have embraced the Agile ideas of building testable and maintainable code. All Java developers need to master the DI concepts in this book.