You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In BeanFactory interface we have only one option to create a prototype bean which has a constructor with arguments: Object getBean(String name, Object... args), which requires a type cast (it returns Object) and requires providing explicit name for a bean (even if there's a single implementation).
Could you please consider adding getBean(Class requiredType, Object... args) as well?
Pavel Petrov opened SPR-11235 and commented
In BeanFactory interface we have only one option to create a prototype bean which has a constructor with arguments: Object getBean(String name, Object... args), which requires a type cast (it returns Object) and requires providing explicit name for a bean (even if there's a single implementation).
Could you please consider adding getBean(Class requiredType, Object... args) as well?
Issue Links:
@LookupMethod
annotation for use with component scanningReferenced from: commits fd5dbdd
2 votes, 5 watchers
The text was updated successfully, but these errors were encountered: