Introduce getType variant with allowFactoryBeanInit flag

Closes gh-23374
This commit is contained in:
Juergen Hoeller
2019-09-04 00:06:23 +02:00
parent eb6577755d
commit f26866e4d4
6 changed files with 56 additions and 6 deletions

View File

@@ -221,6 +221,11 @@ class StubWebApplicationContext implements WebApplicationContext {
return this.beanFactory.getType(name);
}
@Override
public Class<?> getType(String name, boolean allowFactoryBeanInit) throws NoSuchBeanDefinitionException {
return this.beanFactory.getType(name, allowFactoryBeanInit);
}
@Override
public String[] getAliases(String name) {
return this.beanFactory.getAliases(name);