© Kishori Sharan 2018
Kishori SharanJava Language Featureshttps://doi.org/10.1007/978-1-4842-3348-1_14

14. Implementing Services

Kishori Sharan1 
(1)
Montgomery, Alabama, USA
 
In this chapter, you will learn:
  • What services, service interfaces, and service providers are

  • How to implement a service in Java 9 and before Java 9

  • How to use a Java interface as a service implementation in Java 9

  • How to load service providers using the ServiceLoader class

  • How to use the uses statement in a module declaration to specify the service interface that the current module discovers and loads using the ServiceLoader class

  • How to use the provides statement to specify a service provider provided by the current module

  • How to discover, filter, and select service providers based ...

Get Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.