Jump to ratings and reviews
Rate this book

Inversion of Control Containers and the Dependency Injection pattern

Rate this book
In the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive application. Underlying these containers is a common pattern to how they perform the wiring, a concept they refer under the very generic name of "Inversion of Control". In this article I dig into how this pattern works, under the more specific name of "Dependency Injection", and contrast it with the Service Locator alternative. The choice between them is less important than the principle of separating configuration from use.

ebook

First published January 23, 2004

2 people are currently reading
143 people want to read

About the author

Martin Fowler

31 books1,099 followers
Martin Fowler (b. 1963) is a software engineer, Chief Scientist at ThoughtWorks, and an outspoken advocate for best practices in enterprise software design, particularly in regard to agile software development methodologies, including extreme programming.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
7 (77%)
4 stars
2 (22%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Keith.
443 reviews255 followers
July 24, 2015
This is an extremely handy overview of dependency injection. I was pretty confused about halfway through, but as it gets into the tradeoffs between implementation choices in the second half I began to get a handle on both the differences and the reasons why one is better in a given situation than another. I'm sure I'll be coming back to this again as soon as I'm faced with a direct need.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.