Uses of Interface
org.springframework.aot.generate.GenerationContext
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
Test support for core AOT classes.
AOT support for bean factories.
AOT support for application contexts.
-
Uses of GenerationContext in org.springframework.aot.generate
Modifier and TypeMethodDescriptionCreate a newGenerationContext
instance using the specified name to qualify generated assets for a dedicated round of code generation. -
Uses of GenerationContext in org.springframework.aot.test.generate
Modifier and TypeClassDescriptionclass
GenerationContext
test implementation that usesInMemoryGeneratedFiles
and can configure aTestCompiler
instance. -
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
BeanRegistrationCodeFragmentsDecorator.generateInstanceSupplierCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, Executable constructorOrFactoryMethod, boolean allowDirectSupplierShortcut) 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
BeanRegistrationCodeFragmentsDecorator.generateNewBeanDefinitionCode
(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragments.generateReturnCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Generate the return statement.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragmentsDecorator.generateReturnCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) 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
BeanRegistrationCodeFragmentsDecorator.generateSetBeanDefinitionPropertiesCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter) 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.org.springframework.javapoet.CodeBlock
BeanRegistrationCodeFragmentsDecorator.generateSetBeanInstanceSupplierCode
(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, List<MethodReference> postProcessors) -
Uses of GenerationContext in org.springframework.context.aot
Modifier and TypeMethodDescriptionorg.springframework.javapoet.ClassName
ApplicationContextAotGenerator.processAheadOfTime
(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContext
ahead-of-time using the specifiedGenerationContext
.