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

Support for Spring's @Primary annotation #198

Open
brenthaertlein opened this issue Jun 8, 2018 · 0 comments
Open

Support for Spring's @Primary annotation #198

brenthaertlein opened this issue Jun 8, 2018 · 0 comments

Comments

@brenthaertlein
Copy link

If I extend a @Mapper annotated interface with withIoC = IoC.SPRING, and then annotate the extended interface similarly, both are candidates for Autowiring.

Using withIoCServiceName allows me to specify which implementation is used with the @Qualifier annotation, but I feel it would be helpful to designate a generated implementation to have a @Primary annotation on the class (e.g. withIoCPrimary = true maybe?).

Let me know if that's clear enough or if you'd like a code example.

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

No branches or pull requests

1 participant