|
|
|
|
@ -279,10 +279,10 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
@@ -279,10 +279,10 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
|
|
|
|
|
|
|
|
|
|
private boolean isCandidate(ConfigurableListableBeanFactory beanFactory, String name, |
|
|
|
|
@Nullable BeanDefinition definition, Set<String> ignoredBeans) { |
|
|
|
|
if (ignoredBeans.contains(name) || definition == null) { |
|
|
|
|
if (ignoredBeans.contains(name)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (definition.isAutowireCandidate() && isDefaultCandidate(definition)) { |
|
|
|
|
if (definition == null || (definition.isAutowireCandidate() && isDefaultCandidate(definition))) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
if (ScopedProxyUtils.isScopedTarget(name)) { |
|
|
|
|
|