Class DirectExportedModulesAPIModulesReconfigurer

java.lang.Object
io.quarkus.deployment.jvm.DirectExportedModulesAPIModulesReconfigurer
All Implemented Interfaces:
JvmModulesReconfigurer

final class DirectExportedModulesAPIModulesReconfigurer extends Object implements JvmModulesReconfigurer
A concrete implementation of JvmModulesReconfigurer designed to reconfigure JVM module restrictions using the direct API calls available in `jdk.internal.module`. Methods in this package are normally not accessible: to compile this class we need to declare the export --add-exports=java.base/jdk.internal.module=ALL-UNNAMED to javac, and this same export is also required at runtime; otherwise an 'java.lang.IllegalAccessError' will be thrown when these methods are invoked.