spring-framework / org.springframework.beans.factory.support / BeanDefinitionBuilder / rootBeanDefinition

rootBeanDefinition

open static fun rootBeanDefinition(beanClassName: String): BeanDefinitionBuilder

Create a new BeanDefinitionBuilder used to construct a RootBeanDefinition.

Parameters

beanClassName - the class name for the bean that the definition is being created for

open static fun rootBeanDefinition(beanClassName: String, @Nullable factoryMethodName: String): BeanDefinitionBuilder

Create a new BeanDefinitionBuilder used to construct a RootBeanDefinition.

Parameters

beanClassName - the class name for the bean that the definition is being created for

factoryMethodName - the name of the method to use to construct the bean instance

open static fun rootBeanDefinition(beanClass: Class<*>): BeanDefinitionBuilder

Create a new BeanDefinitionBuilder used to construct a RootBeanDefinition.

Parameters

beanClass - the Class of the bean that the definition is being created for

open static fun rootBeanDefinition(beanClass: Class<*>, @Nullable factoryMethodName: String): BeanDefinitionBuilder

Create a new BeanDefinitionBuilder used to construct a RootBeanDefinition.

Parameters

beanClass - the Class of the bean that the definition is being created for

factoryMethodName - the name of the method to use to construct the bean instance