-
Notifications
You must be signed in to change notification settings - Fork 81
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
[WFLY-12779] Incorporate MicroProfile Config in RESTEasy #262
Conversation
|
||
=== Testing By | ||
|
||
[x] Engineering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This RFE should be tested also by QE, asking for bump of the rank.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
|
In RESTEasy 4.x, all parameters, both RESTEasy parameters and application parameters, are | ||
available from all ConfigSources to both RESTEasy and application code. In RESTEasy 3.x, we | ||
propose to add a RESTEasy parameter, "resteasy.config.resteasy.parameters.only", which, when | ||
set to "true", will limit the three RESTEasy ConfigSources to returning RESTEasy parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What parameters would be actually excluded? Can you outline an use-case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ronsigal I find that confusing as well. Do I understand it correctly, when resteasy.config.resteasy.parameters.only=true
* servlet init-params [ordinal 60]
* filter init-params [ordinal 50]
* servlet context-params [ordinal 40]
parameters will be exposed only to RestEasy library? Why not to have all parameters available everywhere? Is it to keep backward compatibility of servlet context-params behaviour? Was there before this RFE way for application to consume servlet context-param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed reference to "resteasy.config.resteasy.parameters.only"
Actually, I backtracked on that, but I see I mentioned it on WFLY-12779, rather than EAP7-1386: One thing I would like to reconsider is the proposal to implement the parameter "resteasy.config.resteasy.parameters.only". Thinking more about it, it seems awkward to restrict the scope of some ConfigSources when most of them, the default ConfigSources as well as those added in Wildfly, are out of RESTEasy's control. I'm thinking now that it makes more sense to allow any parameters to be retrieved in RESTEasy. Sorry for the confusion. I'll update the document. |
1. Removed reference to "resteasy.config.resteasy.parameters.only" 2. Moved testing to QE
|
||
=== Hard Requirements | ||
|
||
* Update RESTEasy to retrieve all configuration parameters from MicroProfile ConfigSources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please elaborate that this one will apply only in case that MicroProfile classes are available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pkremens,
I've rewritten the proposal to account for the fact that RESTEasy must be able to function with or without the availability of MicroProfile Config.
-Ron
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ronsigal
thanks! It is a public holiday today here in Czech Republic so I'll take a look on Monday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ronsigal,
thanks for updates, looking good to me.
I don't think we need to extend the Test Plan
section of this document more, since there will be a separate document in "jbossqe-eap/test-plans" covering that part (we can mention a new profile disable.microprofile.tests
also in there, as it will be needed only for EAP testing).
No description provided.