Class AutomaticFeatureUtils

java.lang.Object
io.micronaut.core.graal.AutomaticFeatureUtils

@Deprecated public final class AutomaticFeatureUtils extends Object
Deprecated.
Use GraalVM's own public API under org.graalvm or conditional metadata in JSON format instead
Utility methods for implementing GraalVM.
Since:
2.0.0
Author:
Álvaro Sánchez-Mariscal, graemerocher
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addProxyClass(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access, String... interfaces)
    Deprecated.
    Registers the given interfaces for dynamic proxy generation.
    static void
    Deprecated.
    Adds resource bundles.
    static void
    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
    Deprecated.
    Initializes the packages at build time.
    static void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - the Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      classNames - 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 - the Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      classNames - The class names
    • initializePackagesAtBuildTime

      public static void initializePackagesAtBuildTime(String... packages)
      Deprecated.
      Initializes the packages at build time.
      Parameters:
      packages - The packages
    • initializePackagesAtRunTime

      public static void initializePackagesAtRunTime(String... packages)
      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 - The Feature.BeforeAnalysisAccess instance
      className - 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 - the Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      className - 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 - the Feature.BeforeAnalysisAccess instance
      className - 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 - the Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      interfaces - the list of interfaces that the generated proxy can implement
    • addResourcePatterns

      public static void addResourcePatterns(String... patterns)
      Deprecated.
      Adds resource patterns.
      Parameters:
      patterns - The patterns
    • addResourceBundles

      public static void addResourceBundles(String... bundles)
      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 - The Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      className - 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 - The Feature.BeforeAnalysisAccess instance
      className - The class name