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

Injection of beans that implement interfaces with Generics without qualifier annotation [SPR-9836] #14469

spring-issuemaster opened this issue Sep 27, 2012 · 2 comments


None yet
2 participants
Copy link

commented Sep 27, 2012

Thomas Oellrich opened SPR-9836 and commented

I recently had a look at a new Dependency Injection framework called Dagger from Jesse Wilson at Square.

It has two cool features that I wish Spring had as well (will create a separate issue for the other feature). In Spring, when two classes implement the same generified interface, say Repository<T>, Spring cannot find the corresponding injection points (because of type erasure I guess). This requires the developer to add qualifier annotations which makes the code less readable. Dagger is somehow able to determine the injection points without qualifier annotations. It would be great if this feature could be added to Spring.

Affects: 3.1.2

Issue Links:

  • #14468 Detect beans when @Inject is present

1 votes, 5 watchers


This comment has been minimized.

Copy link
Collaborator Author

commented Dec 28, 2018

Sébastien Deleuze commented

I guess that's because Dagger is a compile-time dependency injection framework.

Thomas Oellrich is this feature documented somewhere?


This comment has been minimized.

Copy link
Collaborator Author

commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.