-
Notifications
You must be signed in to change notification settings - Fork 116
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
Create a CDI api for Microprofile Config #39
Comments
Linking the discussion in another PR. |
Some people suggested to target JSR330 instead of CDI, to get wider adoption even outside of MP and make things simple. Sounds fine to me to target JSR330 compatibility. |
I think we should leverage the power of full CDI rather than just @Inject because CDI is available in Microprofile. |
while others are talking... #40 ;-) |
@smillidge @OndrejM @Emily-Jiang Could you check out that PR, guess all of you could push/merge it if it meets what we had in mind for DI support? Good too see it also seems to tackle #34 instead of talking against it for days ;-) |
This PR is up for discussion for now. I can merge it myself if all are OK with it. |
We cannot use Gerrit right now, but even if one merges their own PR it would be good to have some form of approval, either a "+1" or something similar. |
That's why I did not yet push it... |
You can configure Github to require review and approval before merge. |
@smillidge the point is not the formal approval as I have commit rights. The point is educated feedback. This is now as CDI as it probably gets! |
Guess it depends on what the Microprofile team (and its project leads) want. Not sure if it's mandatory, but a large number of Apache projects also have PMC votes before substantial commits or changes. https://projects.eclipse.org/projects/technology.microprofile/who is what seems the "PMC" of Microprofile right now. Btw. I trust everyone who has commit rights here does have a valid Eclipse committer and all agreements signed and up to date? Otherwise it could get tricky for such commits, regardless of being approved or not. @waynebeaton can probably tell more on that, he pointed to this https://www.eclipse.org/projects/handbook/#resources-commit in the mailing list a while ago. Romain could be fine as he works for Tomitribe, but as I am Individual committer, I am not sure, what is required for employees. |
Have to look at it in a little more detail. I saw at least 2 participants in either mailing list, hangout or both reviewed the PR. Guess that is how we might like to do this for most changes, regardless of who does the push in the end :-) @struberg Which of the 3 parts of CDI 2 does it use? http://docs.jboss.org/cdi/spec/2.0.Beta1/cdi-spec.html#doc_organisation The main reason is not to run it in SE or on a desktop, but in a cloud environment, where JAR-sizes may cost a lot of money to avoid using the Full Java EE scope for Microprofile ;-) One of the good things of this not a spec is, we could use CDI 2 soon after it's final. |
Was on another mission this week. I have a number of issues with this PR of the CDI approach. |
I can take a look at the weekend as well. I'd like to see the ability to add direct injection of config values but that can be added on top of the base PR. |
Currently, we have these PRs for proposals/POCs:
According to the hangout yesterday, we are now considering either #42 or #86 (and also whether #86 can support Provider/Instance injection to provide the same dynamic features as #42) |
We have quite a few different branches open which have lots of overlap. So I think it would be good to work on those together to move them forward. |
status update:
Closing this ticket. |
I'm creating the CDI api issue as IMHO this is a requirement for a 1.0 drop of microprofile-config. Ideally discussion about CDI can be associated with this issue.
One of the 3 core apis of microprofile and a microprofile runtime is the provision of CDI. To provide a standard programming model for developers using MIcroprofile Config needs to provide a binding to CDI.
The text was updated successfully, but these errors were encountered: