Java Platform Module System (JPMS)¶
The Java Platform Module System (JPMS), also known as Project Jigsaw, is a major feature introduced in Java to provide a modular architecture for the Java Platform and the Java Development Kit (JDK).^[100-InBox__java-Jigsaw.md]
Overview¶
JPMS is designed to address the complexity of large-scale applications and the monolithic nature of the JDK by dividing the codebase into distinct modules.^[100-InBox__java-Jigsaw.md] This system enhances maintainability and performance by allowing components to be explicitly defined and encapsulated.
Key Features¶
- Modularization: Decomposes the JDK and applications into smaller, manageable modules^[100-InBox__java-Jigsaw.md].
- Encapsulation: Enforces Strong encapsulation by defining which packages are publicly accessible and which are internal^[100-InBox__java-Jigsaw.md].
- Reliable Configuration: Ensures that applications are composed of valid sets of modules at compile-time and runtime^[100-InBox__java-Jigsaw.md].
Related Concepts¶
- Java
- [[Software Modularity]]
- [[API Design]]
Sources¶
- 【李兴华编程训练营】Java模块化设计^[100-InBox__java-Jigsaw.md]