Uses of Class
org.springframework.beans.factory.generator.config.BeanDefinitionRegistrar
Package
Description
Classes used in generated code to ease bean registration.
-
Uses of BeanDefinitionRegistrar in org.springframework.beans.factory.generator.config
Modifier and TypeMethodDescriptionBeanDefinitionRegistrar.customize
(BeanDefinitionRegistrar.ThrowableConsumer<RootBeanDefinition> bd) Customize theRootBeanDefinition
using the specified consumer.static BeanDefinitionRegistrar
Initialize the registration of an inner bean with the specified type.static BeanDefinitionRegistrar
BeanDefinitionRegistrar.inner
(ResolvableType beanType) Initialize the registration of an inner bean with the specified type.BeanDefinitionRegistrar.instanceSupplier
(BeanDefinitionRegistrar.ThrowableFunction<BeanDefinitionRegistrar.BeanInstanceContext, ?> instanceContext) Specify how the bean instance should be created and initialized, using theBeanDefinitionRegistrar.BeanInstanceContext
to resolve dependencies if necessary.BeanDefinitionRegistrar.instanceSupplier
(BeanDefinitionRegistrar.ThrowableSupplier<?> instanceSupplier) Specify how the bean instance should be created and initialized.static BeanDefinitionRegistrar
Initialize the registration of a bean with the specified name and type.static BeanDefinitionRegistrar
BeanDefinitionRegistrar.of
(String beanName, ResolvableType beanType) Initialize the registration of a bean with the specified name and type.BeanDefinitionRegistrar.withConstructor
(Class<?>... parameterTypes) Specify the constructor to use to instantiate the bean.BeanDefinitionRegistrar.withFactoryMethod
(Class<?> declaredType, String name, Class<?>... parameterTypes) Specify the factory method to use to instantiate the bean.