dev@jsr311.java.net

Re: JSR311: Can ContextResolver be injected?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 27 Aug 2008 15:56:17 -0400

On Aug 27, 2008, at 3:32 PM, Bill Burke wrote:

> Can ContextResolver be injected into:
>
> a) Providers
> b) Resources
> c) Both
> d) None
>

(d). The only injectable is an instance of Providers whose methods you
then use to obtain a provider instance.

Marc.

> If injecting into a resource is allowed, you have no way of telling
> JAX-RS which MediaType to match against. For Readers/Writers it is
> possible to figure out which media type to match against.
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.