@Internal public final class AutomaticFeatureUtils extends java.lang.Object
AutomaticFeature.| Constructor and Description |
|---|
AutomaticFeatureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String... interfaces)
Registers the given interfaces for dynamic proxy generation.
|
static void |
addResourceBundles(java.lang.String... bundles)
Adds resource bundles.
|
static void |
addResourcePatterns(java.lang.String... patterns)
Adds resource patterns.
|
static void |
initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Marks the given class to be initialized at build time, only if it is present.
|
static void |
initializeAtRunTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Marks the given class to be initialized at runtime, only if it is present.
|
static void |
registerAllForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Allows reflection usage for all fields and methods of the given class, only if it is present.
|
static void |
registerClassForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Allows reflection instantiation of the given class, only if it is present.
|
static void |
registerFieldsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Allows reflection usage for all fields of the given class, only if it is present.
|
static void |
registerMethodsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
Allows reflection usage for all methods of the given class, only if it is present.
|
public static void initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void initializeAtRunTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void registerAllForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void registerClassForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void registerMethodsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void registerFieldsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String className)
access - the Feature.BeforeAnalysisAccess instanceclassName - the class namepublic static void addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
java.lang.String... interfaces)
access - the Feature.BeforeAnalysisAccess instanceinterfaces - the list of interfaces that the generated proxy can implementpublic static void addResourcePatterns(java.lang.String... patterns)
patterns - The patternspublic static void addResourceBundles(java.lang.String... bundles)
bundles - The bundles