Start by describing the java.lang.module , where permission is given, and you will learn about the readability and readability graphs.
Next, consider the Configuration class, because the Configuration object encapsulates the readability graph. Each vertex in the graph is represented by the symbol ResolvedModule .
After you have the Configuration, you can think about how to create an instance in the form of a graph of modules in the Java virtual machine. This will bring you the java.lang.ModuleLayer API.
I think part of the question is asking if there is a relationship between the model world of the ResolvedModule and the runtime of the Module . Usually yes, but there is nothing to prevent you from instantiating the configuration several times, which will lead to the creation of several modules created from the same configuration.
Probably too much to think about yourself now, itβs best to digest the design and APIs before heading there.
source share