Skip to content

Glossary: Software Design Patterns

Service locator

A global registry that code reaches into for its dependencies, like `REGISTRY["repo"]`. It hides dependencies again, and tests must change the global.

Where the book teaches it

Related terms

Dependency injectionRegistry