|
|
|
@ -265,7 +265,6 @@ public abstract class BeanFactoryUtils {
@@ -265,7 +265,6 @@ public abstract class BeanFactoryUtils {
|
|
|
|
|
if (hbf.getParentBeanFactory() instanceof ListableBeanFactory) { |
|
|
|
|
Map<String, T> parentResult = beansOfTypeIncludingAncestors( |
|
|
|
|
(ListableBeanFactory) hbf.getParentBeanFactory(), type); |
|
|
|
|
|
|
|
|
|
parentResult.forEach((beanName, beanType) -> { |
|
|
|
|
if (!result.containsKey(beanName) && !hbf.containsLocalBean(beanName)) { |
|
|
|
|
result.put(beanName, beanType); |
|
|
|
@ -314,7 +313,6 @@ public abstract class BeanFactoryUtils {
@@ -314,7 +313,6 @@ public abstract class BeanFactoryUtils {
|
|
|
|
|
if (hbf.getParentBeanFactory() instanceof ListableBeanFactory) { |
|
|
|
|
Map<String, T> parentResult = beansOfTypeIncludingAncestors( |
|
|
|
|
(ListableBeanFactory) hbf.getParentBeanFactory(), type, includeNonSingletons, allowEagerInit); |
|
|
|
|
|
|
|
|
|
parentResult.forEach((beanName, beanType) -> { |
|
|
|
|
if (!result.containsKey(beanName) && !hbf.containsLocalBean(beanName)) { |
|
|
|
|
result.put(beanName, beanType); |
|
|
|
|