...
Modules configure a service by contributing to service configurations. This may seem esoteric but is really pretty simple. LetWe's ll explain by with an example.
Let's say you've written a bunch of different services, each of which does something specific for a particular type of file (identified by the file's extension), and each implements the same interface, which we'll call FileServicer. And now let's say you need a central service that selects the one of your FileServicer implementations based on a given file extension. You start by providing a service builder method:
...
- It makes it much easier for an override of the service to get the configuration intended for the original service.
...
For mapped configurations where the key type is String, a CaseInsensitiveMap will be automatically used (and passed to the service builder method), to help ensure that case insensitivity is automatic and pervasive.
...