spring-framework / org.springframework.beans.factory.support / ChildBeanDefinition / <init>

<init>

ChildBeanDefinition(parentName: String)

Create a new ChildBeanDefinition for the given parent, to be configured through its bean properties and configuration methods.

Parameters

parentName - the name of the parent bean

See Also
#setBeanClass#setScope#setConstructorArgumentValues#setPropertyValues

ChildBeanDefinition(parentName: String, pvs: MutablePropertyValues)

Create a new ChildBeanDefinition for the given parent.

Parameters

parentName - the name of the parent bean

pvs - the additional property values of the child

ChildBeanDefinition(parentName: String, cargs: ConstructorArgumentValues, pvs: MutablePropertyValues)

Create a new ChildBeanDefinition for the given parent.

Parameters

parentName - the name of the parent bean

cargs - the constructor argument values to apply

pvs - the additional property values of the child

ChildBeanDefinition(parentName: String, beanClass: Class<*>, cargs: ConstructorArgumentValues, pvs: MutablePropertyValues)

Create a new ChildBeanDefinition for the given parent, providing constructor arguments and property values.

Parameters

parentName - the name of the parent bean

beanClass - the class of the bean to instantiate

cargs - the constructor argument values to apply

pvs - the property values to apply

ChildBeanDefinition(parentName: String, beanClassName: String, cargs: ConstructorArgumentValues, pvs: MutablePropertyValues)

Create a new ChildBeanDefinition for the given parent, providing constructor arguments and property values. Takes a bean class name to avoid eager loading of the bean class.

Parameters

parentName - the name of the parent bean

beanClassName - the name of the class to instantiate

cargs - the constructor argument values to apply

pvs - the property values to apply

ChildBeanDefinition(original: ChildBeanDefinition)

Create a new ChildBeanDefinition as deep copy of the given bean definition.

Parameters

original - the original bean definition to copy from