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

interoperate between primitive and boxed values in injector #3

Open
realityforge opened this issue Feb 26, 2020 · 0 comments
Open

interoperate between primitive and boxed values in injector #3

realityforge opened this issue Feb 26, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@realityforge
Copy link
Collaborator

As of v0.05 if a component requests a value of type int and a value of type java.lang.Integer then they are considered different service requests. We could refactor the internals of Sting to treat them identically. This would make it possible to provide a configuration value (i.e. @Named("server.port") int getPort() { return 8080; }) that could be consumed optionally (i.e. @Named("server.port") @Nullable Integer serverPort) or added to a collection etc.

This should not be hard to implement but would require a lot more tests.

@realityforge realityforge added the enhancement New feature or request label Feb 26, 2020
realityforge added a commit that referenced this issue Feb 26, 2020
@realityforge realityforge added this to the 1.0 milestone Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant