users@jersey.java.net

Annotation[] parameter in MessageBodyReader.readFrom method.

From: Erick Dovale <edovale_at_gmail.com>
Date: Sun, 25 Jan 2009 22:17:00 -0500

Hi,
Can anyone explain what annotations are passed in the Annotation[] parameter
in the readFrom method in MessageBodyReader?
I can't understand the javadoc; this is what it says:

an array of the annotations on the declaration of the artifact that will be
> initialized with the produced instance. E.g. if the message body is to be
> converted into a method parameter, this will be the annotations on that
> parameter returned by <code>Class.getParameterAnnotations</code>.
>

First, I could not find such method in java.lang.Class.
Am I missing something?? or this javadoc a bit screwy?

Thanks.