Glossary: Software Design Patterns in Java
Dependency injection
Also written: DI, injection
Giving code its dependencies instead of letting it create or find them. A test can then pass in fakes, so it needs no disk or real clock.
Where the book teaches it
Related terms
Constructor injectionComposition rootDI containerService locator