36.10 Wrap-Up
In this chapter, we introduced Java 9’s new Java Platform Module system. We introduced key modularity concepts you’re likely to use when building large-scale systems.
You saw that all modules implicitly depend on java.base. You created module declarations that specify a module’s dependencies (with the requires directive), which packages a module makes available to other modules (with the exports directive), services it offers (with the provides…with directive), services it consumes (with the uses directive) and to what other modules it allows reflection (with the open modifier and the opens and opens…to directives).
To help you visualize the dependencies among modules, we showed several module-dependency graphs that we created ...
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