15.2 Importing Modules
To import modules, Java provides the Java Platform Module System (JPMS) , known also by its project name Jigsaw . [ 204 ] Its focus is on strong encapsulation: Implementation details can keep a module secret. Even helper code within the module, even if public, must not leak out. Second, there’s an abstraction of behavior via interfaces can implement internal classes from the module, whereby the concrete classes aren’t known to the user. As a third point, explicit dependencies can make interactions with other modules clear. A graphical representation can help you keep track of usage relationships even in large architectures.
15.2.1 Who Sees Whom?
Classes, packages, and modules can be viewed as containers with different ...
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