V
V
Vadim Ivanenko2015-01-30 21:01:11
OOP
Vadim Ivanenko, 2015-01-30 21:01:11

What is a provider?

I often see in ServiceProvider, AuthProvider, CryptoProvider, AuthService CryptoService applications. What should the provider do? How is it different from a service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yeletsky, 2015-01-30
@supra7sky

Service is what implements the very logic of mmm ... service.
ServiceProvider is what gives access to a service or services . That is, something of a facade fraud, behind which there can be different services on the same topic (for example, authentication services).
I also googled this strange article: en.wikipedia.org/wiki/Provider_model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question