|
Re: Providers ordering
Continuing with the idea of the special treatment of the providers shipped with the spec implementations.
Rather than pursue a @DefaultProvider idea, how about treating the providers
Continuing with the idea of the special treatment of the providers shipped with the spec implementations.
Rather than pursue a @DefaultProvider idea, how about treating the providers
|
By
Sergey Beryozkin
·
#38
·
|
|
Re: Providers ordering
Hi Christian
Thanks too,
I agree using @Priority is a viable option. But as I implied earlier, this approach (apart from solving the issue shown with MVC vs custom CSRF mapper)
Hi Christian
Thanks too,
I agree using @Priority is a viable option. But as I implied earlier, this approach (apart from solving the issue shown with MVC vs custom CSRF mapper)
|
By
Sergey Beryozkin
·
#39
·
|
|
Re: Built-in proxy support in Client API?
Hi Dennis,
thanks for the pull request; please don't hijack the topic - this one is about client proxy support. Feel free to start a new thread.
Regards,
Pavel
Hi Dennis,
thanks for the pull request; please don't hijack the topic - this one is about client proxy support. Feel free to start a new thread.
Regards,
Pavel
|
By
Pavel Bucek
·
#40
·
|
|
Re: Built-in proxy support in Client API?
Hi Pavel,
I don't want to hijack the topic, I'm just saying that we can handle both cases in a common way.
Regards
Dennis
Hi Pavel,
I don't want to hijack the topic, I'm just saying that we can handle both cases in a common way.
Regards
Dennis
|
By
Dennis Kieselhorst
·
#41
·
|
|
Re: Returning CompletionStage from the resource method
Hi Sergey,
ad 1) the response processing will be done on the caller (completer) thread (so, completionStage#whenComplete(..), not #whenCompleteAsync(..)), simply because it works in a
Hi Sergey,
ad 1) the response processing will be done on the caller (completer) thread (so, completionStage#whenComplete(..), not #whenCompleteAsync(..)), simply because it works in a
|
By
Pavel Bucek
·
#42
·
|
|
Re: Providers ordering
I agree. Naturally, user-defined providers should take precedence over built-in ones. Clearly, this statement is implicit rather than explicit and should be clarified —at least for some providers.
I agree. Naturally, user-defined providers should take precedence over built-in ones. Clearly, this statement is implicit rather than explicit and should be clarified —at least for some providers.
|
By
Santiago Pericas-Geertsen
·
#43
·
|
|
Re: Providers ordering
Priority should only be used to break ties. Certain providers have well-defined selection algorithms, but in some cases the final set is not a singleton.
— Santiago
Priority should only be used to break ties. Certain providers have well-defined selection algorithms, but in some cases the final set is not a singleton.
— Santiago
|
By
Santiago Pericas-Geertsen
·
#44
·
|
|
#544: Localization & BeanValidation
Dear experts,
we are working on improving integration with BeanValidation [1], and seems like if we choose to address this issue, the change will be slightly bigger than I anticipated.
Dear experts,
we are working on improving integration with BeanValidation [1], and seems like if we choose to address this issue, the change will be slightly bigger than I anticipated.
|
By
Pavel Bucek
·
#45
·
|
|
Re: #544: Localization & BeanValidation
Hi Pavel
Where would usually the code wishing to pass the Locale get the list of supported locales from, without even getting JAX-RS involved ?
If there was some
Hi Pavel
Where would usually the code wishing to pass the Locale get the list of supported locales from, without even getting JAX-RS involved ?
If there was some
|
By
Sergey Beryozkin
·
#46
·
|
|
Re: ClientBuilder#executorService
Sounds good. On the other hand, we simply could say that a Java EE 8 Full Product MUST use the Managed Executor Service, other Java EE 8 Non-Full-Product Profiles SHOULD use the Managed Executor
Sounds good. On the other hand, we simply could say that a Java EE 8 Full Product MUST use the Managed Executor Service, other Java EE 8 Non-Full-Product Profiles SHOULD use the Managed Executor
|
By
Markus KARG
·
#47
·
|
|
Re: #544: Localization & BeanValidation
A JAX-RS application produces machine-readable information (XML, JSON, etc.), hence it does not support ANY human language by definition. BV provides machine-readable ConstraintViolations for this
A JAX-RS application produces machine-readable information (XML, JSON, etc.), hence it does not support ANY human language by definition. BV provides machine-readable ConstraintViolations for this
|
By
Markus KARG
·
#48
·
|
|
Re: Providers ordering
We should not mix up concerns here. @Priority should only beak tie. Whether or not to choose built-in vs. application-provided should be separately declarable. For example, in case A it might make
We should not mix up concerns here. @Priority should only beak tie. Whether or not to choose built-in vs. application-provided should be separately declarable. For example, in case A it might make
|
By
Markus KARG
·
#49
·
|
|
Re: Returning CompletionStage from the resource method
Won't that work what I proposed in the issue tracker:
Giving it a second thought I wonder whether Servlet's AsyncContext wouldn't provide what I proposed originally: A handle to the "original"
Won't that work what I proposed in the issue tracker:
Giving it a second thought I wonder whether Servlet's AsyncContext wouldn't provide what I proposed originally: A handle to the "original"
|
By
Markus KARG
·
#50
·
|
|
Re: #544: Localization & BeanValidation
Bean Validation spec lead here, thanks a lot for considering this feature!
> Since there is no way how to get a list of supported locales
Why is it that you need to get the list of locales? The Locale
Bean Validation spec lead here, thanks a lot for considering this feature!
> Since there is no way how to get a list of supported locales
Why is it that you need to get the list of locales? The Locale
|
By
Gunnar Morling
·
#51
·
|
|
Re: #544: Localization & BeanValidation
Hi Gunnar,
Other than message interpolation, is there any other scenario where locale information is important in BV? What comes to mind is a string that contains a representation of a
Hi Gunnar,
Other than message interpolation, is there any other scenario where locale information is important in BV? What comes to mind is a string that contains a representation of a
|
By
Santiago Pericas-Geertsen
·
#52
·
|
|
Re: Providers ordering
Hi Markus,
The precedence of application-defined vs. built-in providers has already been established and cannot be changed at this point (but should be clarified better as mentioned by others).
Hi Markus,
The precedence of application-defined vs. built-in providers has already been established and cannot be changed at this point (but should be clarified better as mentioned by others).
|
By
Santiago Pericas-Geertsen
·
#53
·
|
|
Re: Providers ordering
I do not see that we cannot change this. If we decide that a new, optional annotation will modify the precedence, this would be perfectly backwards compatible, as all non-annotated code will still
I do not see that we cannot change this. If we decide that a new, optional annotation will modify the precedence, this would be perfectly backwards compatible, as all non-annotated code will still
|
By
Markus KARG
·
#54
·
|
|
Re: #544: Localization & BeanValidation
If we want to support I18N on the JAX-RS server, it only would be straightforward to not only translation BV messages, but we also have to provide similar services to ALL providers, too. For example,
If we want to support I18N on the JAX-RS server, it only would be straightforward to not only translation BV messages, but we also have to provide similar services to ALL providers, too. For example,
|
By
Markus KARG
·
#55
·
|
|
Re: #544: Localization & BeanValidation
We are still not exactly sure how / whether it should be put into place.
JAX-RS implementation has to have list of supported locales, because there is a defined algorithm, which chooses
We are still not exactly sure how / whether it should be put into place.
JAX-RS implementation has to have list of supported locales, because there is a defined algorithm, which chooses
|
By
Pavel Bucek
·
#56
·
|
|
Re: #544: Localization & BeanValidation
Can those providers which need it, ex, BV exception mappers, depend on the existing injectable Configuration interface to ensure the locales or other info can be accessed in a portable way ?
Cheers,
Can those providers which need it, ex, BV exception mappers, depend on the existing injectable Configuration interface to ensure the locales or other info can be accessed in a portable way ?
Cheers,
|
By
Sergey Beryozkin
·
#57
·
|