Service Locator Pattern / Dependency Inversion Principle (DIP)

Kind: tension

Record: tension:dependency-inversion-principle-dip-service-locator-pattern

Canonical: Schema

"service-locator-pattern" (extensibility-core layer) is traded against "DIP" (structural-core layer) — a principle cannot be scope-separated from a quality, metric, or cost it competes with; resolve by measuring "DIP" and choosing an explicit operating point.

Listed in Tensions, after Service Locator Pattern / Testability and before Service Locator Pattern / Explicit Dependencies.

In tension with

Mechanism

Linked from