[jax-rs-spec users] [jsr339-experts] Where to put annotations like DefaultValue when injection of request parameters is done via setters ?

From: Sergey Beryozkin <>
Date: Wed, 12 Mar 2014 22:10:55 +0000


What is the right way to specify the annotation like DefaultValue when
injecting the parameters via setters, is it


public class Root {
    public setId(String id) {}



public class Root {
    public setId(@DefaultValue("1") String id) {}

or either (1) or (2).

Should API clarify it ? I can open a minor 2.1 issue