On 29/07/13 13:39, John Baker wrote:
Ok I'm stumped. Given my example:

   @PUT
   @Path("/{id}")
   public void updateFruit(@QueryParam("id") String id, Banana banana);

   @PUT
   @Path("/{id}")
   public void updateAnimal(@QueryParam("id") String id, Dog dog);

what should I be testing in the compare(OperationalResourceInfo r1,
OperationalResourceInfo r2) method? I see the OperationalResourceInfo
methods have a getAnnotatedMethod property, and let's assume I know it
should be calling updateAnimal (because of the Message body), what
should I return for the various potential values?

The relevant RC method needs to help with ordering the method candidates, so return either -1 or 1 to help the runtime choose the right candidate

--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to