16.5. Summary

You’ve seen that dependency injection is a powerful technique that allows developers to write applications such that new contexts and configurations have minimal (if no) impact on the resulting codebase. At the same time, it removes the boilerplate code associated with class factories that provide concrete implementations and class constructors that serve as a bridge for passing values between components.

Various, sometimes passionate opinions abound regarding the use of dependency injection. They all have their basis, but more often than not, it’s the way and degree to which dependency injection is used that causes developers to have a negative view of it. And honestly, we can’t blame them. Staring at 100,000 lines of code with ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.