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 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
Constructors Constructor Description JPMSExportBuildItem(String moduleName, String packageName)JPMSExportBuildItem(String moduleName, String packageName, GraalVM.Version exportSince)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GraalVM.VersiongetExportBefore()GraalVM.VersiongetExportSince()StringgetModule()StringgetPackage()inthashCode()booleanisRequired(GraalVM.Version current)
-
-
-
Constructor Detail
-
JPMSExportBuildItem
public JPMSExportBuildItem(String moduleName, String packageName, GraalVM.Version exportSince)
-
JPMSExportBuildItem
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 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 Detail
-
getPackage
public String getPackage()
-
getModule
public String getModule()
-
getExportSince
public GraalVM.Version getExportSince()
-
getExportBefore
public GraalVM.Version getExportBefore()
-
isRequired
public boolean isRequired(GraalVM.Version current)
-
-