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 ★

Comum · Saberes

Service locator pattern

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

Texto em 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.

Na Wikipédia

Texto em inglês Ainda não há artigo no seu idioma: trecho em 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: Wikipédia em inglês, CC BY-SA 4.0. · Imagem: Frap (CC0) ·

Cartas próximas

Abrir

…

Confirmação