|
Re: Providers ordering
Hi Pavel
I thought that the MVC spec was shipping its own default mapper, that is way I was suggesting checking javax.*.
if it is not the case then I agree it would not work
Hi Pavel
I thought that the MVC spec was shipping its own default mapper, that is way I was suggesting checking javax.*.
if it is not the case then I agree it would not work
|
By
Sergey Beryozkin
·
#63
·
|
|
Re: Providers ordering
That is the main use case AFICT. Any library/framework sitting on top of JAX-RS may need finer control over this. @Priority is already used for filters and interceptors, except that in this case the
That is the main use case AFICT. Any library/framework sitting on top of JAX-RS may need finer control over this. @Priority is already used for filters and interceptors, except that in this case the
|
By
Santiago Pericas-Geertsen
·
#62
·
|
|
Re: Providers ordering
Hi Sergey, others,
you suggest that the exception mapper would be part of MVC spec (not the implementation, so not in javax.* package but more like org.impl.something.*?). I think
Hi Sergey, others,
you suggest that the exception mapper would be part of MVC spec (not the implementation, so not in javax.* package but more like org.impl.something.*?). I think
|
By
Pavel Bucek
·
#61
·
|
|
Re: Providers ordering
Hi Santiago
In what other cases, apart from ensuring a mapper shipped with MVC (or other spec APIs depending on JAX-RS), we would want to support sorting two
Hi Santiago
In what other cases, apart from ensuring a mapper shipped with MVC (or other spec APIs depending on JAX-RS), we would want to support sorting two
|
By
Sergey Beryozkin
·
#60
·
|
|
Re: Providers ordering
By an annotation you mean something like @PreferBuiltinProviders? I don’t see how that addresses the requirements outlined in JIRA 537.
— Santiago
By an annotation you mean something like @PreferBuiltinProviders? I don’t see how that addresses the requirements outlined in JIRA 537.
— Santiago
|
By
Santiago Pericas-Geertsen
·
#59
·
|
|
Re: Providers ordering
I guess that what I also suggested when we talked with Christian about @DefaultProvider - the only problem from what I understood MVC will've been already released by the time JAX-RS 2.1 gets out.
To
I guess that what I also suggested when we talked with Christian about @DefaultProvider - the only problem from what I understood MVC will've been already released by the time JAX-RS 2.1 gets out.
To
|
By
Sergey Beryozkin
·
#58
·
|
|
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
·
|
|
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
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: 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: 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: #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: #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: 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: 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: #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: 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
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
·
|
|
#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: 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
·
|