Skip to content

Glossary: Software Design Patterns in Java

Service locator

A global registry that code reaches into for its dependencies. It hides the dependencies and makes tests change the global, so injection is preferred.

Where the book teaches it

Related terms

Dependency injectionRegistry