java-tutorials/core-java-modules/core-java-9-jigsaw
Michael Angstadt 388f03ae9a Use ServiceLoader class to obtain service instance
In the "main-app" module, the `HelloInterface` service instance, `HelloModules`, was just being treated like an ordinary class that was exported from the "hello.modules" module. The code was not treating the class as a service class. This is not a good example of how services are used.

This commit makes use of the `ServiceLoader` class, which provides access to the `HelloInterface` instance as defined in the "hello.modules" module. This serves as a better example for how services are used.
2020-05-26 15:46:28 -04:00
..
src Use ServiceLoader class to obtain service instance 2020-05-26 15:46:28 -04:00
README.md
compile-simple-modules.sh
compile-student-client.bat
compile-student-model.bat
compile-student-service-dbimpl.bat
compile-student-service.bat
pom.xml pom formatting 2020-03-15 18:22:24 +05:30
run-simple-module-app.sh
run-student-client.bat
run-student-client.sh

README.md

Core Java 9

This module contains articles about Project Jigsaw and the Java Platform Module System (JPMS), introduced with Java 9.

Relevant Articles: