users@jersey.java.net

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

From: Christopher Schmidt <fakod666_at_gmail.com>
Date: Tue, 14 Jan 2014 16:37:36 +0100

Thanks Jakub for clarification.

Just for completeness:

I've just released sjersey_2.10 version 0.4.0. Should be available in
Central in a few minutes.
Sjersey supports case classes, Scala Collection query parameter and Jackson
JSON together with Jersey 2.5.1
It is intended to be a Jersey-scala replacement.


On Mon, Jan 13, 2014 at 10:28 AM, Jakub Podlesak
<jakub.podlesak_at_oracle.com>wrote:

> 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
>
>
>