Re[2]: Why service provider method is called "provider", but not "provide"?
Alex Orlov
ooo_saturn7 at mail.ru
Tue Nov 24 12:55:16 UTC 2020
Oh, I seem to get it finally. Thank everyone for help, because I like to understand everything I work with.
Up to now when I used "provider()" I asked myself — what the provider was.
But could anyone explain, why the folder, in META-INF with provider names is called "services"? I mean
META-INF/services. We do create this folder and its content to give service implementations (i.e. providers),
but not to inform, that there are the following service interfaces.
--
Best regards, Alex Orlov
>Вторник, 24 ноября 2020, 15:12 +03:00 от Alan Bateman <alan.bateman at oracle.com>:
>
>On 24/11/2020 06:46, Alex Orlov wrote:
>> Could you then explain the difference between service and service provider? As I understand
>> you’re saying they are the same. The second paragraph of the class description attempts to establish the
>terminology. The "service" is the well known interface, "service
>providers" are the implementations, these are what ServiceLoader will
>locate and load. Also the "Designing services" an "Deploying service
>providers" sections are meant to provide guidance when designing for
>services.
>
>-Alan
More information about the jigsaw-dev
mailing list