|
|
|
@ -711,16 +711,15 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean shouldSkipBeanDefinition( |
|
|
|
private boolean shouldSkipBeanDefinition(boolean isAbstract, boolean allowEagerInit, |
|
|
|
boolean isAbstract, boolean allowEagerInit, |
|
|
|
|
|
|
|
boolean hasBeanClass, boolean isLazyInit, @Nullable String factoryBeanName) { |
|
|
|
boolean hasBeanClass, boolean isLazyInit, @Nullable String factoryBeanName) { |
|
|
|
|
|
|
|
|
|
|
|
if (isAbstract) { |
|
|
|
if (isAbstract) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!allowEagerInit) { |
|
|
|
if (!allowEagerInit) { |
|
|
|
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading()) |
|
|
|
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading()) || |
|
|
|
|| requiresEagerInitForType(factoryBeanName); |
|
|
|
requiresEagerInitForType(factoryBeanName); |
|
|
|
if (needsEagerInit) { |
|
|
|
if (needsEagerInit) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|