public final class AutomaticFeatureUtils extends Object
AutomaticFeature.| 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... classNames)
Marks the given class to be initialized at build time, only if it is present.
|
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... classNames)
Marks the given class to be initialized at runtime, 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 |
initializePackagesAtBuildTime(String... packages)
Initializes the packages at build time.
|
static void |
initializePackagesAtRunTime(String... packages)
Initializes the packages at run time.
|
static void |
registerAllForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register class for runtime reflection without allowing reflective instantiation.
|
static void |
registerAllForRuntimeReflectionAndReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register class for runtime reflection and allows reflective instantiation.
|
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 |
registerClassForRuntimeReflectionAndReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register the class and allow reflective instantiation at runtime, only if it is present.
|
static void |
registerClassForRuntimeReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register the class for reflective instantiation at runtime, only if it is present.
|
static void |
registerConstructorsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register all constructors of the given class for runtime reflection, only if the class is present.
|
static void |
registerFieldsAndMethodsWithReflectiveAccess(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
Register class for runtime reflection and allows reflective instantiation.
|
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 initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String... classNames)
access - The Feature.BeforeAnalysisAccess instanceclassNames - The class namespublic static void initializeAtRunTime(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... classNames)
access - The Feature.BeforeAnalysisAccess instanceclassNames - The class namespublic static void initializePackagesAtBuildTime(String... packages)
packages - The packagespublic static void initializePackagesAtRunTime(String... packages)
packages - The packagespublic static void registerConstructorsForRuntimeReflection(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 registerClassForRuntimeReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
access - The Feature.BeforeAnalysisAccess instanceclassName - The class namepublic static void registerClassForRuntimeReflectionAndReflectiveInstantiation(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 bundlespublic static void registerAllForRuntimeReflectionAndReflectiveInstantiation(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 registerFieldsAndMethodsWithReflectiveAccess(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access,
String className)
access - The Feature.BeforeAnalysisAccess instanceclassName - The class name