Package org.graalvm.nativeimage.hosted
package org.graalvm.nativeimage.hosted
The GraalVM SDK Native Image API allows to customize the native image generation, i.e., the
ahead-of-time compilation of Java code to standalone executables:
Feature
s allow clients to intercept the native image generation and run custom initialization code at various stages.RuntimeClassInitialization
is used to configure when classes are initialized.RuntimeReflection
to register classes, methods, and fields for reflection at run time.
- Since:
- 19.0
-
ClassDescriptionFeatures allow clients to intercept the native image generation and run custom initialization code at various stages.Access methods available for
Feature.afterAnalysis(org.graalvm.nativeimage.hosted.Feature.AfterAnalysisAccess)
.Access methods available forFeature.afterCompilation(org.graalvm.nativeimage.hosted.Feature.AfterCompilationAccess)
.Access methods available forFeature.afterHeapLayout(org.graalvm.nativeimage.hosted.Feature.AfterHeapLayoutAccess)
.Access methods available forFeature.afterImageWrite(org.graalvm.nativeimage.hosted.Feature.AfterImageWriteAccess)
.Access methods available forFeature.afterRegistration(org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess)
.Access methods available forFeature.beforeAnalysis(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess)
.Access methods available forFeature.beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess)
.Access methods available forFeature.beforeHeapLayout(org.graalvm.nativeimage.hosted.Feature.BeforeHeapLayoutAccess)
.Access methods available forFeature.beforeImageWrite(org.graalvm.nativeimage.hosted.Feature.BeforeImageWriteAccess)
.Access methods available forFeature.beforeUniverseBuilding(org.graalvm.nativeimage.hosted.Feature.BeforeUniverseBuildingAccess)
.Access methods available forFeature.duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess)
.Access methods available forFeature.duringSetup(org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess)
.Access methods that are available for all feature methods.Access methods available forFeature.isInConfiguration(org.graalvm.nativeimage.hosted.Feature.IsInConfigurationAccess)
.Access methods available forFeature.onAnalysisExit(org.graalvm.nativeimage.hosted.Feature.OnAnalysisExitAccess)
.Access reachability methods available forFeature.afterAnalysis(org.graalvm.nativeimage.hosted.Feature.AfterAnalysisAccess)
andFeature.duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess)
.A transformer for a field value that can be registered usingFeature.BeforeAnalysisAccess.registerFieldValueTransformer(java.lang.reflect.Field, org.graalvm.nativeimage.hosted.FieldValueTransformer)
.This class provides methods that can be called during native-image building to configure class initialization behavior.This class provides methods that can be called during native image generation to register classes, methods, and fields for JNI access at run time.This class can be used to make creating dynamic proxy classes at run time valid.This class provides methods that can be called during native image generation to register classes, methods, and fields for reflection at run time.This class can be used to register Java resources and ResourceBundles that should be accessible at run time.This class provides methods that can be called before and during analysis, to register classes for serialization at image runtime.This class provides methods that can be called during native image generation to define system property setting for image runtime.