ModuleLayerHelper
Functions
Link copied to clipboard
A ModuleLayer needs to be provided for the ReflectionTypeSolver and the boot layer (the module layer containing the module `java.base`) is chosen as a default.
Link copied to clipboard
The JDK doesn't expose a simple mechanism for listing modules containing classes loaded by a classloader, so users who would like to solve types in modules need to provide a list of module layers containing the modules that should be discoverable by the type solver.