|
|
|
@ -139,7 +139,6 @@ public class RootBeanDefinition extends AbstractBeanDefinition { |
|
|
|
* @see #setPropertyValues |
|
|
|
* @see #setPropertyValues |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public RootBeanDefinition() { |
|
|
|
public RootBeanDefinition() { |
|
|
|
super(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -148,10 +147,18 @@ public class RootBeanDefinition extends AbstractBeanDefinition { |
|
|
|
* @see #setBeanClass |
|
|
|
* @see #setBeanClass |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public RootBeanDefinition(@Nullable Class<?> beanClass) { |
|
|
|
public RootBeanDefinition(@Nullable Class<?> beanClass) { |
|
|
|
super(); |
|
|
|
|
|
|
|
setBeanClass(beanClass); |
|
|
|
setBeanClass(beanClass); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Create a new RootBeanDefinition for a singleton. |
|
|
|
|
|
|
|
* @param beanType the type of bean to instantiate |
|
|
|
|
|
|
|
* @see #setTargetType(ResolvableType) |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public RootBeanDefinition(@Nullable ResolvableType beanType) { |
|
|
|
|
|
|
|
setTargetType(beanType); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create a new RootBeanDefinition for a singleton bean, constructing each instance |
|
|
|
* Create a new RootBeanDefinition for a singleton bean, constructing each instance |
|
|
|
* through calling the given supplier (possibly a lambda or method reference). |
|
|
|
* through calling the given supplier (possibly a lambda or method reference). |
|
|
|
@ -193,7 +200,6 @@ public class RootBeanDefinition extends AbstractBeanDefinition { |
|
|
|
* (not applicable to autowiring a constructor, thus ignored there) |
|
|
|
* (not applicable to autowiring a constructor, thus ignored there) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public RootBeanDefinition(@Nullable Class<?> beanClass, int autowireMode, boolean dependencyCheck) { |
|
|
|
public RootBeanDefinition(@Nullable Class<?> beanClass, int autowireMode, boolean dependencyCheck) { |
|
|
|
super(); |
|
|
|
|
|
|
|
setBeanClass(beanClass); |
|
|
|
setBeanClass(beanClass); |
|
|
|
setAutowireMode(autowireMode); |
|
|
|
setAutowireMode(autowireMode); |
|
|
|
if (dependencyCheck && getResolvedAutowireMode() != AUTOWIRE_CONSTRUCTOR) { |
|
|
|
if (dependencyCheck && getResolvedAutowireMode() != AUTOWIRE_CONSTRUCTOR) { |
|
|
|
|