3.5Arten von Modulen

Das Java-Modulsystem unterscheidet folgende fünf Arten von Modulen:

  • Platform Explicit Modules
  • Application Explicit Modules
  • Automatic Modules
  • Open Modules
  • Unnamed Module
image

Abb. 3–19 Modularten

Alle Module außer der Modulart Unnamed Module haben einen Modulnamen und sind daher der Gruppe der Named Modules zuzuordnen. Die Gruppe Named Modules teilt sich in Explicit Modules und Automatic Modules auf. Bei Letzteren handelt es sich um gewöhnliche JARs, die im Modulpfad liegend vom Modulsystem automatisch als Module behandelt werden. Diese bringen keinen eigenen Moduldeskriptor mit im Gegensatz zu den Explicit Modules. Letztere werden ...

Get Modularisierung mit Java 9 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.