Exploring the concept of modules with the module pattern
This pattern implements the concept of software modules defined by modular programming. The pattern is used in cases where the programming language does not have direct support for such a concept or the application requires it.
Motivation
This pattern can be implemented in several ways depending on the application requirements. The module pattern concentrates or encapsulates the composition of an application’s functionality into precisely identified modules. The Java platform has already implemented basic support for the module concept through the Jigsaw project, available since the release of JDK 9, but it is possible to try to create it programmatically in a similar way, although not entirely in isolation, as the source code can influence its modularization approach.
Finding it in the JDK
The best example that can be found in the JDK of the module pattern is the Java platform modules. This concept was discussed...