users@jersey.java.net

Re: [Jersey] Re: Deployment: provider recognized, but not instantiated?

From: Marc Hadley <marc.hadley_at_oracle.com>
Date: Fri, 23 Apr 2010 10:58:11 -0400

On Apr 23, 2010, at 9:22 AM, ljnelson wrote:

> On Fri, Apr 23, 2010 at 8:29 AM, Marc Hadley-2 [via Jersey]
> <[hidden email]> wrote:
> > I think the current behavior is correct. "object class" is a poor choice of
> > phrase, it should be "entity object's class" or "the class of the entity
> > object" instead. The intent is that writers whose generic type is closer to
> > the actual type of the object being written are sorted ahead of those
> > further away. This sorting allows more specific writers to override more
> > generic ones.
>
> Pardon the dumb question, but I can still plonk an MBW<Object> down
> and expect it to be called for everything, right, even though Jersey
> might supply something like, e.g., MBW<String>?
>
Yes, application-supplied MBW are supposed to be used in preference to runtime-supplied ones.

Marc.