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 Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
compile-simple-modules.sh Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
compile-student-client.bat Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
compile-student-model.bat Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
compile-student-service-dbimpl.bat Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
compile-student-service.bat Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
pom.xml pom formatting 2020-03-15 18:22:24 +05:30
run-simple-module-app.sh Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
run-student-client.bat Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00
run-student-client.sh Merge branch 'master' into BAEL-16633 2019-10-30 23:09:06 +01:00

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: