Class ApplicationContextAotGenerator
java.lang.Object
org.springframework.context.generator.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateApplicationContext
(GenericApplicationContext applicationContext, GeneratedTypeContext generationContext) Refresh the specifiedGenericApplicationContext
and generate the necessary code to restore the state of itsBeanFactory
, using the specifiedGeneratedTypeContext
.
-
Constructor Details
-
ApplicationContextAotGenerator
public ApplicationContextAotGenerator()
-
-
Method Details
-
generateApplicationContext
public void generateApplicationContext(GenericApplicationContext applicationContext, GeneratedTypeContext generationContext) Refresh the specifiedGenericApplicationContext
and generate the necessary code to restore the state of itsBeanFactory
, using the specifiedGeneratedTypeContext
.- Parameters:
applicationContext
- the application context to handlegenerationContext
- the generation context to use
-