Package io.micronaut.core.graal
Class AutomaticFeatureUtils
java.lang.Object
io.micronaut.core.graal.AutomaticFeatureUtils
Deprecated.
Utility methods for implementing GraalVM.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal, graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addProxyClass
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... interfaces) Deprecated.Registers the given interfaces for dynamic proxy generation.static void
addResourceBundles
(String... bundles) Deprecated.Adds resource bundles.static void
addResourcePatterns
(String... patterns) Deprecated.Adds resource patterns.static void
initializeAtBuildTime
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.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... classNames) Deprecated.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) Deprecated.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... classNames) Deprecated.Marks the given class to be initialized at runtime, only if it is present.static void
initializePackagesAtBuildTime
(String... packages) Deprecated.Initializes the packages at build time.static void
initializePackagesAtRunTime
(String... packages) Deprecated.Initializes the packages at run time.static void
registerAllForRuntimeReflection
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register class for runtime reflection without allowing reflective instantiation.static void
registerAllForRuntimeReflectionAndReflectiveInstantiation
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register class for runtime reflection and allows reflective instantiation.static void
registerClassForRuntimeReflection
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Allows reflection instantiation of the given class, only if it is present.static void
registerClassForRuntimeReflectionAndReflectiveInstantiation
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.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) Deprecated.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) Deprecated.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) Deprecated.Register class for runtime reflection and allows reflective instantiation.static void
registerFieldsForRuntimeReflection
(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.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) Deprecated.Allows reflection usage for all methods of the given class, only if it is present.
-
Constructor Details
-
AutomaticFeatureUtils
public AutomaticFeatureUtils()Deprecated.
-
-
Method Details
-
initializeAtBuildTime
public static void initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Marks the given class to be initialized at build time, only if it is present.- Parameters:
access
- theFeature.BeforeAnalysisAccess
instanceclassName
- the class name
-
initializeAtBuildTime
public static void initializeAtBuildTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... classNames) Deprecated.Marks the given class to be initialized at build time, only if it is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassNames
- The class names
-
initializeAtRunTime
public static void initializeAtRunTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Marks the given class to be initialized at runtime, only if it is present.- Parameters:
access
- theFeature.BeforeAnalysisAccess
instanceclassName
- the class name
-
initializeAtRunTime
public static void initializeAtRunTime(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... classNames) Deprecated.Marks the given class to be initialized at runtime, only if it is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassNames
- The class names
-
initializePackagesAtBuildTime
Deprecated.Initializes the packages at build time.- Parameters:
packages
- The packages
-
initializePackagesAtRunTime
Deprecated.Initializes the packages at run time.- Parameters:
packages
- The packages
-
registerConstructorsForRuntimeReflection
public static void registerConstructorsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register all constructors of the given class for runtime reflection, only if the class is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
registerClassForRuntimeReflection
public static void registerClassForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Allows reflection instantiation of the given class, only if it is present.- Parameters:
access
- theFeature.BeforeAnalysisAccess
instanceclassName
- the class name
-
registerClassForRuntimeReflectiveInstantiation
public static void registerClassForRuntimeReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register the class for reflective instantiation at runtime, only if it is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
registerClassForRuntimeReflectionAndReflectiveInstantiation
public static void registerClassForRuntimeReflectionAndReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register the class and allow reflective instantiation at runtime, only if it is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
registerMethodsForRuntimeReflection
public static void registerMethodsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Allows reflection usage for all methods of the given class, only if it is present.- Parameters:
access
- theFeature.BeforeAnalysisAccess
instanceclassName
- the class name
-
registerFieldsForRuntimeReflection
public static void registerFieldsForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Allows reflection usage for all fields of the given class, only if it is present.- Parameters:
access
- theFeature.BeforeAnalysisAccess
instanceclassName
- the class name
-
addProxyClass
public static void addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... interfaces) Deprecated.Registers the given interfaces for dynamic proxy generation.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceinterfaces
- the list of interfaces that the generated proxy can implement
-
addResourcePatterns
Deprecated.Adds resource patterns.- Parameters:
patterns
- The patterns
-
addResourceBundles
Deprecated.Adds resource bundles.- Parameters:
bundles
- The bundles
-
registerAllForRuntimeReflectionAndReflectiveInstantiation
public static void registerAllForRuntimeReflectionAndReflectiveInstantiation(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register class for runtime reflection and allows reflective instantiation. Also register all fields, methods and constructors for runtime reflection; only if the class is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
registerAllForRuntimeReflection
public static void registerAllForRuntimeReflection(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register class for runtime reflection without allowing reflective instantiation. Also register all fields, methods and constructors for runtime reflection; only if the class is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
registerFieldsAndMethodsWithReflectiveAccess
public static void registerFieldsAndMethodsWithReflectiveAccess(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String className) Deprecated.Register class for runtime reflection and allows reflective instantiation. Also register all fields and methods for runtime reflection; only if the class is present.- Parameters:
access
- TheFeature.BeforeAnalysisAccess
instanceclassName
- The class name
-
org.graalvm
or conditional metadata in JSON format instead