Skip to content
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

Injecting list of parametrized beans is not supported by Spring 3 for AsyncFactoryBean #612

Open
arteymix opened this issue Mar 31, 2023 · 0 comments

Comments

@arteymix
Copy link
Member

arteymix commented Mar 31, 2023

Because Future<MyService> are parametrized beans, it's not possible to inject them with Spring 3.

In general, you can get away with it using a @Qualifier and name specifically the bean you need, but it does not work for a List<Future<MyService>>.

One viable workaround is to inject List<MyServiceFactory> instead.

Should be dealt with in #508

@arteymix arteymix added the bug label Mar 31, 2023
@arteymix arteymix mentioned this issue Mar 31, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant