Class ResolvedJVMRequirements

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.jvm.ResolvedJVMRequirements

public final class ResolvedJVMRequirements extends io.quarkus.builder.item.SimpleBuildItem
Represents requirements and restrictions on the runtime. Currently only used to track add-opens requirements; we'd like to eventually support tracking, for example, the required JVM version as we start to see some libraries having more specific restrictions. Another use could be, for example, to force enabling experimental features such as needing jdk.incubator.vector and implied version requirements.
  • Constructor Details

  • Method Details

    • renderAddOpensElementToJarManifest

      public void renderAddOpensElementToJarManifest(Attributes attributes)
    • renderAsJvmArguments

      public List<String> renderAsJvmArguments()
      Renders the requirements as JVM command line arguments, for launchers that start the application class directly rather than through the manifest of a packaged jar. As with the manifest, modules are opened to the unnamed module; the ModuleOpenBuildItem.openingModuleName() is ignored.
      Returns:
      the --add-opens and --enable-native-access arguments, in a stable order
    • applyJavaModuleConfigurationToRuntime

      public void applyJavaModuleConfigurationToRuntime(JvmModulesReconfigurer reconfigurer, ClassLoader referenceClassloader)