|
|
@ -182,13 +182,7 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
|
|
|
|
for (String type : spec.getTypes()) {
|
|
|
|
for (String type : spec.getTypes()) {
|
|
|
|
Collection<String> typeMatches = getBeanNamesForType(classLoader, considerHierarchy, beanFactory, type,
|
|
|
|
Collection<String> typeMatches = getBeanNamesForType(classLoader, considerHierarchy, beanFactory, type,
|
|
|
|
parameterizedContainers);
|
|
|
|
parameterizedContainers);
|
|
|
|
Iterator<String> iterator = typeMatches.iterator();
|
|
|
|
typeMatches.removeIf(match -> beansIgnoredByType.contains(match) || ScopedProxyUtils.isScopedTarget(match));
|
|
|
|
while (iterator.hasNext()) {
|
|
|
|
|
|
|
|
String match = iterator.next();
|
|
|
|
|
|
|
|
if (beansIgnoredByType.contains(match) || ScopedProxyUtils.isScopedTarget(match)) {
|
|
|
|
|
|
|
|
iterator.remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (typeMatches.isEmpty()) {
|
|
|
|
if (typeMatches.isEmpty()) {
|
|
|
|
result.recordUnmatchedType(type);
|
|
|
|
result.recordUnmatchedType(type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|