Skip to content

BeanFactory lacks method for getting bean by type with specified constructor arguments [SPR-11235] #15860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Dec 16, 2013 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 16, 2013

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:

Referenced from: commits fd5dbdd

2 votes, 5 watchers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants