refactor: Extract bean definition skipping logic into a separate method
Signed-off-by: KNU-K <knukang334@gmail.com>
This commit is contained in:
parent
37bbf28830
commit
f44e9899aa
|
@ -711,16 +711,15 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
|||
}
|
||||
}
|
||||
|
||||
private boolean shouldSkipBeanDefinition(
|
||||
boolean isAbstract, boolean allowEagerInit,
|
||||
private boolean shouldSkipBeanDefinition(boolean isAbstract, boolean allowEagerInit,
|
||||
boolean hasBeanClass, boolean isLazyInit, @Nullable String factoryBeanName) {
|
||||
|
||||
if (isAbstract) {
|
||||
return true;
|
||||
}
|
||||
if (!allowEagerInit) {
|
||||
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading())
|
||||
|| requiresEagerInitForType(factoryBeanName);
|
||||
boolean needsEagerInit = (!hasBeanClass && isLazyInit && !isAllowEagerClassLoading()) ||
|
||||
requiresEagerInitForType(factoryBeanName);
|
||||
if (needsEagerInit) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue