Uses of Interface
org.springframework.aot.generate.GenerationContext
Packages that use 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
Classes in org.springframework.aot.generate that implement GenerationContext -
Uses of GenerationContext in org.springframework.beans.factory.aot
Methods in org.springframework.beans.factory.aot with parameters of type GenerationContextModifier and TypeMethodDescriptionvoidBeanFactoryInitializationAotContribution.applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) Apply this contribution to the givenBeanFactoryInitializationCode.voidBeanRegistrationAotContribution.applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Apply this contribution to the givenBeanRegistrationCode.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, Executable constructorOrFactoryMethod, boolean allowDirectSupplierShortcut) Generate the instance supplier code.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) Generate the code that defines the new bean definition instance.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateReturnCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Generate the return statement.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateSetBeanDefinitionPropertiesCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter) Generate the code that sets the properties of the bean definition.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.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
Methods in org.springframework.context.aot with parameters of type GenerationContextModifier and TypeMethodDescriptionvoidApplicationContextAotGenerator.generateApplicationContext(GenericApplicationContext applicationContext, GenerationContext generationContext, org.springframework.javapoet.ClassName generatedInitializerClassName) Refresh the specifiedGenericApplicationContextand generate the necessary code to restore the state of itsBeanFactory, using the specifiedGenerationContext.