A hands-on walkthrough of Java 9's Project Jigsaw module system using an advent calendar demo app. Covers three progressive steps: wrapping existing code in a single module, splitting a monolith into multiple modules with explicit dependencies and exports, and using the ServiceLoader/service locator pattern to decouple modules from concrete implementations. Includes module-info.java examples, compile/run commands, and explanations of key concepts like requires, exports, transitive readability, and provides/uses clauses.

14m read timeFrom nipafx.dev
Post cover image
Table of contents
▚ The Application Before Jigsaw▚ Entering Jigsaw Land▚ Splitting Into Modules▚ Services▚ Summary

Sort: