[jax-rs-spec users] [jsr339-experts] Custom Providers

From: Jan Algermissen <>
Date: Wed, 10 Apr 2013 18:49:47 +0200


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?