spring-framework / org.springframework.beans.factory.config / RuntimeBeanReference / <init>

<init>

RuntimeBeanReference(beanName: String)

Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.

Parameters

beanName - name of the target bean

RuntimeBeanReference(beanName: String, toParent: Boolean)

Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory.

Parameters

beanName - name of the target bean

toParent - whether this is an explicit reference to a bean in the parent factory