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.
Test support for core AOT classes.
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 GenerationContextMethods in org.springframework.aot.generate that return GenerationContextModifier and TypeMethodDescriptionCreate a newGenerationContextinstance using the specified name to qualify generated assets for a dedicated round of code generation. -
Uses of GenerationContext in org.springframework.aot.test.generate
Classes in org.springframework.aot.test.generate that implement GenerationContextModifier and TypeClassDescriptionclassGenerationContexttest implementation that usesInMemoryGeneratedFilesand can configure aTestCompilerinstance. -
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.default BeanRegistrationCodeFragmentsBeanRegistrationAotContribution.customizeBeanRegistrationCodeFragments(GenerationContext generationContext, BeanRegistrationCodeFragments codeFragments) Customize theBeanRegistrationCodeFragmentsthat will be used to generate the bean registration code.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, Executable constructorOrFactoryMethod, boolean allowDirectSupplierShortcut) Generate the instance supplier code.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, Executable constructorOrFactoryMethod, boolean allowDirectSupplierShortcut) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) Generate the code that defines the new bean definition instance.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateNewBeanDefinitionCode(GenerationContext generationContext, ResolvableType beanType, BeanRegistrationCode beanRegistrationCode) org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragments.generateReturnCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Generate the return statement.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateReturnCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) 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.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateSetBeanDefinitionPropertiesCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter) 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.org.springframework.javapoet.CodeBlockBeanRegistrationCodeFragmentsDecorator.generateSetBeanInstanceSupplierCode(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, List<MethodReference> postProcessors) -
Uses of GenerationContext in org.springframework.context.aot
Methods in org.springframework.context.aot with parameters of type GenerationContextModifier and TypeMethodDescriptionorg.springframework.javapoet.ClassNameApplicationContextAotGenerator.processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) Process the specifiedGenericApplicationContextahead-of-time using the specifiedGenerationContext.