users@jersey.java.net

[Jersey] Re: _at_Provider and InjectableProvider and Jersey 2.x

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Mon, 13 Jan 2014 10:28:53 +0100

Hi Christopher,

You would really need to implement what is described in [2].
Jersey 2 replaced the original, Jersey 1 internal injection framework
with HK2, and that is why the original provider would
not work in Jersey 2.5.1.

~Jakub

On 11 Jan 2014, at 17:13, Christopher Schmidt <fakod666_at_gmail.com> wrote:

> Hi,
>
> can anyone give me some hints on how to upgrade ScalaCollectionsQueryParamInjectableProvider [1] to Jersey 2.5.1. This Injectable allows to use members of the Scala Collection API in Resource methods.
>
> Do I really need to implement what is mentioned here [2], or is it still easily possible as in Jersey 1.x?
>
>
> [1] https://github.com/FaKod/sjersey/blob/sjersey_2.10-0.3.3/src/main/scala/eu/fakod/sjersey/inject/ScalaCollectionsQueryParamInjectableProvider.scala
> [2] http://stackoverflow.com/questions/18463311/jersey-2-how-to-replace-injectableprovider-and-abstracthttpcontextinjectable