Constructor and Description |
---|
AutomaticFeatureUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String... interfaces)
Registers the given interfaces for dynamic proxy generation.
|
static void |
addResourceBundles(String... bundles)
Adds resource bundles
|
static void |
addResourcePatterns(String... patterns)
Adds resource patterns.
|
static void |
initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
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,
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,
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,
String className)
Allows reflection instantiation of the given class, only if it is present.
|
static void |
registerFieldsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
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,
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, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void initializeAtRunTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void registerAllForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void registerClassForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void registerMethodsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void registerFieldsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className)
access
- the Feature.BeforeAnalysisAccess
instanceclassName
- the class namepublic static void addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... interfaces)
access
- the Feature.BeforeAnalysisAccess
instanceinterfaces
- the list of interfaces that the generated proxy can implementpublic static void addResourcePatterns(String... patterns)
patterns
- The patternspublic static void addResourceBundles(String... bundles)
bundles
- The bundles