public class NativeKBean extends KBean
Modifier and Type | Field and Description |
---|---|
java.lang.String |
args |
boolean |
includeAllResources |
boolean |
includeMainClassArg |
java.lang.String |
metadataRepoVersion |
JkNativeCompilation.StaticLink |
staticLink |
boolean |
useMetadataRepo |
Constructor and Description |
---|
NativeKBean() |
Modifier and Type | Method and Description |
---|---|
void |
compile() |
JkNativeCompilation |
createNativeCompilation(JkBuildable buildable)
Creates a native compilation configuration for the specified buildable object.
|
NativeKBean |
setAotAssetDirs(java.util.function.Supplier<java.util.List<java.nio.file.Path>> aotAssetDirs)
Sets the directories containing ahead-of-time compilation assets for the native image.
|
cleanOutput, find, getBaseDir, getBaseDirName, getBasePath, getOutputDir, getRunbase, init, load, toString
public java.lang.String args
public JkNativeCompilation.StaticLink staticLink
public boolean useMetadataRepo
public java.lang.String metadataRepoVersion
public boolean includeMainClassArg
public boolean includeAllResources
public void compile()
public NativeKBean setAotAssetDirs(java.util.function.Supplier<java.util.List<java.nio.file.Path>> aotAssetDirs)
aotAssetDirs
- A supplier providing a list of paths to the AOT assets directories.public JkNativeCompilation createNativeCompilation(JkBuildable buildable)
This method triggers dependency resolution if the metadata repository is used.