Add missing variants of getBeanNamesForType
Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing
`getBeanNamesForType` methods that accept a `ResolvableType` rather
than a `Class`.
This completes the work started in 778a01943b.
Closes gh-23335
This commit is contained in:
committed by
Juergen Hoeller
parent
30132b42c6
commit
2ee1ce61c0
@@ -251,6 +251,11 @@ class StubWebApplicationContext implements WebApplicationContext {
|
||||
return this.beanFactory.getBeanNamesForType(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getBeanNamesForType(@Nullable ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) {
|
||||
return this.beanFactory.getBeanNamesForType(type, includeNonSingletons, allowEagerInit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getBeanNamesForType(@Nullable Class<?> type) {
|
||||
return this.beanFactory.getBeanNamesForType(type);
|
||||
|
||||
Reference in New Issue
Block a user