Package org.springframework.context.aot
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.javapoet.ClassName
processAheadOfTime
(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContext
ahead-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 specifiedGenericApplicationContext
ahead-of-time using the specifiedGenerationContext
.Return the
ClassName
of theApplicationContextInitializer
to 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
ClassName
of theApplicationContextInitializer
entry point
-