388f03ae9a
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. |
||
---|---|---|
.. | ||
src | ||
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 | ||
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.