Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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.
Average Rating: ![]()
![]()
![]()
![]()
Based on 8 Ratings
"Specifically re: Chapter 11" - by Fred on 25-JUN-2011
Reviewer Rating: ![]()
![]()
![]()
![]()
![]()
When I go to the trouble to download a chapter to walk through a tutorial/example, I sort of expect said example to have something to do with the subject matter of the book. Unfortunately, this was much more about Sitebricks than either Guice or Spring. As a matter of fact, I didn't see any of the two subjects that I was looking for in the example.
Report as Inappropriate
"Extremely informative and practical" - by nomikos on 17-NOV-2010
Reviewer Rating: ![]()
![]()
![]()
![]()
![]()
This book has opened my mind to a new way of wiring service objects. It has also given many side tips to conducting unit tests and mocking objects. This book is a must read for developers that have been exclusively using factory patterns to generate objects.
Report as Inappropriate
Top Level Categories:
Information Technology & Software Development
Sub-Categories:
Information Technology & Software Development > Software Engineering & Development
Software Engineering & Development > Patterns