Uses of Interface
org.springframework.aot.generate.GenerationContext
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
AOT support for bean factories.
AOT support for application contexts.
-
Uses of GenerationContext in org.springframework.aot.generate
-
Uses of GenerationContext in org.springframework.beans.factory.aot
Modifier and TypeMethodDescriptionvoid
BeanFactoryInitializationAotContribution.applyTo
(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) Apply this contribution to the givenBeanFactoryInitializationCode
.void
BeanRegistrationAotContribution.applyTo
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Apply this contribution to the givenBeanRegistrationCode
.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateInstanceSupplierCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, Executable constructorOrFactoryMethod, boolean allowDirectSupplierShortcut) Generate the instance supplier code.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateNewBeanDefinitionCode
(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) Generate the code that defines the new bean definition instance.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateReturnCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Generate the return statement.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateSetBeanDefinitionPropertiesCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter) Generate the code that sets the properties of the bean definition.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateSetBeanInstanceSupplierCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, List<MethodReference> postProcessors) Generate the code that sets the instance supplier on the bean definition. -
Uses of GenerationContext in org.springframework.context.aot
Modifier and TypeMethodDescriptionvoid
ApplicationContextAotGenerator.generateApplicationContext
(GenericApplicationContext applicationContext, GenerationContext generationContext, org.springframework.javapoet.ClassName generatedInitializerClassName) Refresh the specifiedGenericApplicationContext
and generate the necessary code to restore the state of itsBeanFactory
, using the specifiedGenerationContext
.