what type for writer matching?

From: Bill Burke <>
Date: Wed, 09 Apr 2008 09:37:34 -0400


What should the jax-rs runtime match a MEssageBodyWriter to the return
entity to?

The object's class? or the method return type?

I have a user that wants to match based on the returned object's class
as his method return a base interface that won't match the desired provider.

So, I guess match based on the entity's concrete class and the method
generic type?



Bill Burke
JBoss, a division of Red Hat