In this chapter, we used JIT injection, a somewhat unusual DI method, to remove some of the monkey patching from earlier chapters.
We also used a different form of JIT injection to add an optional dependency, without detracting from the UX of our code.
Additionally, we examined how JIT injection can also be used to reduce test-induced damage, without sacrificing our ability to use mocks and stubs in our tests.
In the next chapter, we will examine the last DI method in the book, off-the-shelf injection. We will discuss the general advantages and disadvantages of adopting a DI framework, and for our examples we will use Google's Wire framework.