Description
Root resource classes are instantiated by the JAX-RS runtime and MUST have a constructor with one of the following annotations on every parameter: @HttpContext, @HeaderParam, @MatrixParam, @QueryParam or @UriParam. Note that a zero argument constructor is permissible under this rule. Section 2.4.1 defines the parameter types permitted for each annotation. If more than one constructor that matches the above pattern is available then an implementation MUST use the one with the most parameters. Choosing amongst constructors with the same number of parameters is implementation specific.