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