|
|
@ -24,7 +24,6 @@ import java.util.Collection;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
|
|
import java.util.LinkedHashSet;
|
|
|
|
import java.util.LinkedHashSet;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Locale;
|
|
|
|
import java.util.Locale;
|
|
|
@ -182,7 +181,8 @@ 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);
|
|
|
|
typeMatches.removeIf(match -> beansIgnoredByType.contains(match) || ScopedProxyUtils.isScopedTarget(match));
|
|
|
|
typeMatches
|
|
|
|
|
|
|
|
.removeIf((match) -> beansIgnoredByType.contains(match) || ScopedProxyUtils.isScopedTarget(match));
|
|
|
|
if (typeMatches.isEmpty()) {
|
|
|
|
if (typeMatches.isEmpty()) {
|
|
|
|
result.recordUnmatchedType(type);
|
|
|
|
result.recordUnmatchedType(type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|