O'Reilly logo

Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

14. Implementing Services

Kishori Sharan
(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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required