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
Modifier and TypeMethodDescriptionReturn a newGenerationContext
instance using the specified name to qualify generated assets for a dedicated round of code generation. -
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
.default BeanRegistrationCodeFragments
BeanRegistrationAotContribution.customizeBeanRegistrationCodeFragments
(GenerationContext generationContext, BeanRegistrationCodeFragments codeFragments) Customize theBeanRegistrationCodeFragments
that will be used to generate the bean registration code.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 TypeMethodDescriptionorg.springframework.javapoet.ClassName
ApplicationContextAotGenerator.generateApplicationContext
(GenericApplicationContext applicationContext, GenerationContext generationContext) Refresh the specifiedGenericApplicationContext
and generate the necessary code to restore the state of itsBeanFactory
, using the specifiedGenerationContext
.