I was reading the Jersey docs about bean validation. The ParameterNameProvider
example shows how to define parameter names for a method. However, the implementation looks like this will have to be done for each and every method which obviously doesn't scale. The example is basically useless as is.
Is there a smarter way to do this? Couldn't Jersey infer the name from @QueryParam
or @PathParam
annotations?