Class ApplicationContextAotGenerator

java.lang.Object
org.springframework.context.aot.ApplicationContextAotGenerator

public class ApplicationContextAotGenerator extends Object
Process an ApplicationContext and its BeanFactory to generate code that represents the state of the bean factory, as well as the necessary hints that can be used at runtime in a constrained environment.
Since:
6.0
Author:
Stephane Nicoll, Phillip Webb
  • Constructor Details

    • ApplicationContextAotGenerator

      public ApplicationContextAotGenerator()
  • Method Details

    • generateApplicationContext

      public void generateApplicationContext(GenericApplicationContext applicationContext, GenerationContext generationContext, org.springframework.javapoet.ClassName generatedInitializerClassName)
      Refresh the specified GenericApplicationContext and generate the necessary code to restore the state of its BeanFactory, using the specified GenerationContext.
      Parameters:
      applicationContext - the application context to handle
      generationContext - the generation context to use
      generatedInitializerClassName - the class name to use for the generated application context initializer