We're not in the container business, IMO. Most JAX-RS implementations
can integrate with existing DI containers. Resteasy, for example
supports CDI, Spring, and Guice. There's always POJO DI too!
On 4/10/2013 12:49 PM, Jan Algermissen wrote:
> Hi,
>
> facing the task of writing a general library of some filters for JAX-RS 2 I really find it confusing, that there is no JAX-RS framework-level way to write a custom provider. (For example to inject a library-user provided database connection of some sort into a filter or feature).
>
> As it looks, one has to hard-wire some components of such a library with parts of a particular JAX-RS implementation (to get @Context injection) or particular container (to get CDI). Both seems quite odd, actually. Or you have to come up with solutions for every implementation/container and have users pick.
>
> Would be curious how others feel about that. Maybe an issue for 2.x or 3.0?
>
> Or am I missing something entirely?
>
>
> Jan
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com