# Uses of Interface
org.springframework.beans.factory.aot.BeanRegistrationCode

Packages that use BeanRegistrationCode
Package
Description
org.springframework.beans.factory.aot
AOT support for bean factories.

## Uses of BeanRegistrationCode in org.springframework.beans.factory.aot

Methods in org.springframework.beans.factory.aot with parameters of type BeanRegistrationCode
Modifier and Type
Method
Description
`void`
BeanRegistrationAotContribution.`applyTo(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode)`
Apply this contribution to the given `BeanRegistrationCode`.
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragments.`generateInstanceSupplierCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, boolean allowDirectSupplierShortcut)`
Generate the instance supplier code.
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragmentsDecorator.`generateInstanceSupplierCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, boolean allowDirectSupplierShortcut)`
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragments.`generateNewBeanDefinitionCode(org.springframework.aot.generate.GenerationContext generationContext, org.springframework.core.ResolvableType beanType, BeanRegistrationCode beanRegistrationCode)`
Generate the code that defines the new bean definition instance.
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragmentsDecorator.`generateNewBeanDefinitionCode(org.springframework.aot.generate.GenerationContext generationContext, org.springframework.core.ResolvableType beanType, BeanRegistrationCode beanRegistrationCode)`
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragments.`generateReturnCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode)`
Generate the return statement.
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragmentsDecorator.`generateReturnCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode)`
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragments.`generateSetBeanDefinitionPropertiesCode(org.springframework.aot.generate.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(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, RootBeanDefinition beanDefinition, Predicate<String> attributeFilter)`
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragments.`generateSetBeanInstanceSupplierCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, List<org.springframework.aot.generate.MethodReference> postProcessors)`
Generate the code that sets the instance supplier on the bean definition.
`org.springframework.javapoet.CodeBlock`
BeanRegistrationCodeFragmentsDecorator.`generateSetBeanInstanceSupplierCode(org.springframework.aot.generate.GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode, org.springframework.javapoet.CodeBlock instanceSupplierCode, List<org.springframework.aot.generate.MethodReference> postProcessors)`