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 use of @Named on enum types (Bugzilla Bug 448641) #21

Open
mcculls opened this issue Oct 25, 2021 · 0 comments
Open

Support use of @Named on enum types (Bugzilla Bug 448641) #21

mcculls opened this issue Oct 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mcculls
Copy link
Contributor

mcculls commented Oct 25, 2021

This issue was created automatically with bugzilla2github

Bugzilla Bug 448641

Date: 2014-10-24 07:50:33 -0400
From: Stuart McCulloch <mcculls@gmail.com>
To: Stuart McCulloch <mcculls@gmail.com>

Last updated: 2015-05-25 14:44:36 -0400

Comment 2471031

Date: 2014-10-24 07:50:33 -0400
From: Stuart McCulloch <mcculls@gmail.com>

When it sees @Named on an enum type, Sisu should iterate over the values and bind each one as if it was annotated with @Named(value-name). This would be useful for situations where an enum provides common implementations of an interface, and you want to support injection of the interface but also allow alternative implementations.

@mcculls mcculls added the bug Something isn't working label Oct 25, 2021
@mcculls mcculls added enhancement New feature or request and removed bug Something isn't working labels Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant