users@jersey.java.net

[Jersey] Injecting List<MediaType> via _at_Context

From: Martynas Jusevičius <martynas_at_graphity.org>
Date: Thu, 11 Jun 2015 16:49:14 +0200

Hey,

is it possible to inject typed lists using @Context?

I've implemented a custom provider that extends
PerRequestTypeInjectableProvider<Context, List<MediaType>>. I am not
sure however what to pass to its constructor. If I use List.class, the
provider is not picked up.

Any thoughts? Thanks.

Martynas