Class ApplicationContextAotGenerator
java.lang.Object
org.springframework.context.aot.ApplicationContextAotGenerator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.javapoet.ClassNameprocessAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContextahead-of-time using the specifiedGenerationContext.
-
Constructor Details
-
ApplicationContextAotGenerator
public ApplicationContextAotGenerator()
-
-
Method Details
-
processAheadOfTime
public org.springframework.javapoet.ClassName processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContextahead-of-time using the specifiedGenerationContext.Return the
ClassNameof theApplicationContextInitializerto use to restore an optimized state of the application context.- Parameters:
applicationContext- the non-refreshed application context to processgenerationContext- the generation context to use- Returns:
- the
ClassNameof theApplicationContextInitializerentry point
-