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

Closed
spring-projects-issues opened this issue Sep 27, 2012 · 2 comments
Labels
in: core status: bulk-closed

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues 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.

https://github.com/square/Dagger

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:

1 votes, 5 watchers

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues 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?

@spring-projects-issues spring-projects-issues added status: waiting-for-triage type: enhancement in: core and removed type: enhancement labels Jan 11, 2019
@rstoyanchev rstoyanchev added status: bulk-closed and removed status: waiting-for-triage labels Jan 11, 2019
@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues 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
Labels
in: core status: bulk-closed
Projects
None yet
Development

No branches or pull requests

2 participants