July 2019
Intermediate to advanced
440 pages
13h 56m
English
This chapter covers
ServiceLoader to consume servicesUp to now, we represented relationships between modules with requires directives where the depending module has to reference each specific dependency by name. As section 3.2 explains in depth, this lies at the heart of reliable configuration. But sometimes you want a higher level of abstraction.
This chapter explores services in the module system and how to use them to decouple modules by removing direct dependencies between them. The first ...
Read now
Unlock full access