Migrating to Modules
Automatic and unnamed modules.
Modularizing Existing Code
Few projects adopt modules from day one. JPMS was designed for gradual migration, letting classpath and module path coexist.
The keys are automatic modules and the unnamed module.
The Unnamed Module
Everything loaded from the classpath lives in the single unnamed module. It reads every other module and exports all its packages.
This is the bridge that keeps legacy classpath code working.
All lessons in this course
- module-info.java
- requires and exports
- Services with provides/uses
- Migrating to Modules