Class AotProcessor

java.lang.Object
org.springframework.boot.AotProcessor

public class AotProcessor extends Object
Entry point for AOT processing of a SpringApplication.

For internal use only.

Since:
3.0.0
Author:
Stephane Nicoll, Andy Wilkinson, Phillip Webb
  • Constructor Details

    • AotProcessor

      public AotProcessor(Class<?> application, String[] applicationArgs, Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId)
      Create a new processor for the specified application and settings.
      Parameters:
      application - the application main class
      applicationArgs - the arguments to provide to the main method
      sourceOutput - the location of generated sources
      resourceOutput - the location of generated resources
      classOutput - the location of generated classes
      groupId - the group ID of the application, used to locate native-image.properties
      artifactId - the artifact ID of the application, used to locate native-image.properties
  • Method Details

    • process

      public void process()
      Trigger the processing of the application managed by this instance.
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception