Service locator pattern

Software pattern to dynamically control the loading of objects at run-time via a central registry object.

The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry known as the "service locator", which on request returns the information necessary to perform a certain task.

Nº Q7455762 ★

Común · Saberes

Service locator pattern

Software pattern to dynamically control the loading of objects at run-time via a central registry object.

Texto en inglés

The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry known as the "service locator", which on request returns the information necessary to perform a certain task.

En Wikipedia

Texto en inglés Aún no hay artículo en tu idioma: extracto en inglés.

The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. This pattern uses a central registry known as the "service locator", which on request returns the information necessary to perform a certain task. Proponents of the pattern say the approach simplifies component-based applications where all dependencies are cleanly listed at the beginning of the whole application design, consequently making traditional dependency injection a more complex way of connecting objects. Critics of the pattern argue that it is an anti-pattern which obscures dependencies and makes software harder to test.

Texto: Wikipedia en inglés, CC BY-SA 4.0. · Imagen: Frap (CC0) ·

Cartas cercanas

Abrir

…

Confirmación