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

Add @Primary and @Secondary #11

Closed
rbygrave opened this issue Nov 26, 2018 · 0 comments
Closed

Add @Primary and @Secondary #11

rbygrave opened this issue Nov 26, 2018 · 0 comments
Assignees
Milestone

Comments

@rbygrave
Copy link
Contributor

These are used as tie breakers when multiple beans implement the same interface and a single bean is being injected.

@Primary makes it the preferred bean to inject
@Secondary makes it the least preferred bean to inject - will only be used if no other bean is available to inject. This makes it a kind of default bean used for injection when no other bean is available to inject.

@rbygrave rbygrave self-assigned this Nov 26, 2018
rbygrave added a commit that referenced this issue Nov 27, 2018
rbygrave added a commit that referenced this issue Nov 27, 2018
Temporary disable tests for release
rbygrave added a commit that referenced this issue Nov 27, 2018
Restore tests after generator release
rbygrave added a commit that referenced this issue Nov 27, 2018
Restore tests after generator release
rbygrave added a commit that referenced this issue Nov 27, 2018
Restore tests after generator release
@rbygrave rbygrave added this to the 0.12 milestone Nov 27, 2018
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