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 Summary
ConstructorsConstructorDescriptionJPMSExportBuildItem(String moduleName, String packageName) JPMSExportBuildItem(String moduleName, String packageName, GraalVM.Version exportSince, GraalVM.Version exportBefore) Deprecated.JPMSExportBuildItem(String moduleName, String packageName, io.quarkus.runtime.graal.GraalVM.Version exportSince) 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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.quarkus.runtime.graal.GraalVM.Versionio.quarkus.runtime.graal.GraalVM.VersioninthashCode()booleanisRequired(io.quarkus.runtime.graal.GraalVM.Version current)
-
Constructor Details
-
JPMSExportBuildItem
-
JPMSExportBuildItem
-
JPMSExportBuildItem
@Deprecated public JPMSExportBuildItem(String moduleName, String packageName, GraalVM.Version exportSince, GraalVM.Version exportBefore) Deprecated.Creates a build item that indicates that a Java package should be exported for a specific GraalVM version range.- Parameters:
moduleName- the module namepackageName- the package nameexportSince- 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 namepackageName- the package nameexportSince- 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
-
getModule
-
equals
-
hashCode
public int hashCode() -
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)
-
JPMSExportBuildItem(String, String, GraalVM.Version, GraalVM.Version)instead