[jax-rs-spec users] Re: Entity Providers and Injection

From: Santiago Pericas-Geertsen <>
Date: Wed, 11 Sep 2013 07:50:41 -0400

Hi Arun,

 Section 10.2.3 from the JAX-RS spec states:

"In a product that supports CDI, implementations MUST support the use of CDI-style Beans as root resource classes, providers and Application subclasses. "

 So providers are included on the list.

-- Santiago

On Sep 10, 2013, at 5:13 PM, Arun Gupta <> wrote:

> The Java EE 7 platform spec, Table EE.5-1 lists all the components supporting injection. It says that resource and CDI injection is supported only in JAX-RS components managed by CDI. IIRC Entity Providers are managed by JAX-RS runtime and so any sort of injection in them would be non-standard.
> Can Entity Providers be configured to be managed by CDI ?
> Thanks,
> Arun
> --