ProduceMime and ConsumeMime

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 06 Apr 2007 12:25:50 -0400

On Apr 6, 2007, at 3:59 AM, Jerome Louvel wrote:
>> (ii) The content type will be guessed based on the presence of a
>> @ProduceMime annotation on the class or method. If none
>> exists you'll
>> get application/octet-stream as the default.
> I like the general idea, but I'm not too keen on the "@ProduceMime",
> "@ConsumeMime" names. I would prefer a simple "MediaType"
> annotation on the
> return type and/or on the Employees class itself.
Naming is always tricky. One thing I'd like to maintain is the
ability to specify the (possibly different) types of consumed and
produced entities at the class level since that reduces the number of
annotations you need on each method.


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