Closed keilw closed 3 years ago
Actually it works, but it was previously sorted ascending, so lower numbers like 1 or 10 first.
While the priority number could be defined based on any particular need, some usage of the Priority
annotations like Priorities in Jakarta REST/JAX-RS also use the highest number as the default.
After changes to ServiceProvider by @desruisseaux the priority seems ignored, at least for sorting in the
available()
method:However,
DefaultServiceProvider
has a priority of 10 (not using the annotation, only the integer method),SIServiceProvider
has 100 andCommonServiceProvider
has 1000, so they are in completely the wrong order or rather seem not sorted at all. Previously theServiceProvider
with the highest priority would becomecurrent()
. Which was changed based on the implementation notes of thecurrent
member, but if the priority is not used any more not even to sort theavailable()
service providers list, why do we still need it?