Class JPMSExportBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.nativeimage.JPMSExportBuildItem

public final class JPMSExportBuildItem extends io.quarkus.builder.item.MultiBuildItem
A build item that indicates that a Java package should be exported using '-J--add-exports' option to become visible to native-image
  • Constructor Details

    • JPMSExportBuildItem

      public JPMSExportBuildItem(String moduleName, String packageName)
    • JPMSExportBuildItem

      public JPMSExportBuildItem(String moduleName, String packageName, io.quarkus.runtime.graal.GraalVM.Version exportSince)
    • JPMSExportBuildItem

      @Deprecated public JPMSExportBuildItem(String moduleName, String packageName, GraalVM.Version exportSince, GraalVM.Version exportBefore)
      Creates a build item that indicates that a Java package should be exported for a specific GraalVM version range.
      Parameters:
      moduleName - the module name
      packageName - the package name
      exportSince - the version of GraalVM since which the package should be exported (inclusive)
      exportBefore - the version of GraalVM before which the package should be exported (exclusive)
    • JPMSExportBuildItem

      public JPMSExportBuildItem(String moduleName, String packageName, io.quarkus.runtime.graal.GraalVM.Version exportSince, io.quarkus.runtime.graal.GraalVM.Version exportBefore)
      Creates a build item that indicates that a Java package should be exported for a specific GraalVM version range.
      Parameters:
      moduleName - the module name
      packageName - the package name
      exportSince - the version of GraalVM since which the package should be exported (inclusive)
      exportBefore - the version of GraalVM before which the package should be exported (exclusive)
  • Method Details

    • getPackage

      public String getPackage()
    • getModule

      public String getModule()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getExportSince

      public io.quarkus.runtime.graal.GraalVM.Version getExportSince()
    • getExportBefore

      public io.quarkus.runtime.graal.GraalVM.Version getExportBefore()
    • isRequired

      public boolean isRequired(io.quarkus.runtime.graal.GraalVM.Version current)