15.4 Further Reading
To learn more about the history of the modules, good insights are available in various presentations by the Java’s creators at https://openjdk.java.net/projects/jigsaw/. The module system provides even more options, such as opening for reflection or transitive dependencies with requires transitive, so that a module co-determines another module for the user. Furthermore, provide ... with and the uses syntax is available for service loaders. If you have an interface I and an implementation C, you can specify that the module information provides I with C, while the service loader can supply the type C with ServiceLoader.load(I.class). This approach works without the META-INF/services files that were necessary prior to Java ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access