-
Notifications
You must be signed in to change notification settings - Fork 72
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
public static void setInstance(RestClientBuilderResolver resolver) is an implementation leak and should be dropped from the API #103
Comments
Per discussion in eclipse/microprofile-open-api#224 the resolution of this issue should be to put the |
Any rational to keep this method since multiple threads qhowed osgi and other envs dont need it? Others are ok to extract even if pby overkill. |
CXF does not use the We'd probably need to deprecate it first. |
It's often the only way how to set a custom resolver in an OSGi environment. I think that @Emily-Jiang has some opinion about this. In Payara, the resolver is provided via the service loader mechanism. |
@OndrejM I know it is what @Emily-Jiang keeps saying but this is not true and there are OSGi solution nowdays which avoid to break the API introducing some vendor specific implementations, please have a look to microprofile/microprofile#33 or geronimo which does it since almost 20 years without any need of API tweak. |
I believe, @rmannibucau. I even think that the API doesn't need to support the service loader pattern, which is also impl-specific. The SPI package exists only to make it easier to create implementations. Maybe a better solution is to provide an SPI to provide an impl-specific extension, which could provide implementations in any way |
Agree, if you think 2s about here is concrete status of that particular point:
Sounds like a trivial fix, no? |
It sounds OK to me to use CDI for providing implementations for specs that can rely on CDI. Most of them should except the config one you mentioned. |
It is obvious from the discussion in microprofile/microprofile-open-api#224 that this pattern is used in many other specs (config, REST client, openapi). This should then be discussed on a higher level at the architecture board. I raised an issue here: microprofile/microprofile#43 |
close this as it has been resolved. Please reopen if you think otherwise. |
Hmm, AFAIK there is no change in the API and the buggy method is still surfacing so this issue is still valid since:
|
See microprofile/microprofile-open-api#224, this kind of method don't belong to the API and is only issues promises so should disappear from any coming release
The text was updated successfully, but these errors were encountered: