Re: What is the "Type genericType" parameter in the JAX-RS ParamConverterProvider's getConverter() method for?

2016-10-06 Thread Sergey Beryozkin
Np, FYI there was a bug in CXF, fixed for 3.1.8-SNAPSHOT: https://issues.apache.org/jira/browse/CXF-6992 Sergey On 06/10/16 14:16, Christian Balzer wrote: Thanks. So, I suppose I could do (((ParameterizedType) genericType).getActualTypeArguments() to get hold of the actual Integer in your examp

Re: What is the "Type genericType" parameter in the JAX-RS ParamConverterProvider's getConverter() method for?

2016-10-06 Thread Christian Balzer
Thanks. So, I suppose I could do (((ParameterizedType) genericType).getActualTypeArguments() to get hold of the actual Integer in your example, if I'm not mistaken. Useful to know for next time. :) Regards, Christian On Thu, Oct 6, 2016 at 1:32 PM, Sergey Beryozkin wrote: > Hi Christian > > > I

Re: What is the "Type genericType" parameter in the JAX-RS ParamConverterProvider's getConverter() method for?

2016-10-06 Thread Sergey Beryozkin
Hi Christian If you have something like MyType then the generic type will help the converter implementation to figure out that MyType is parameterized by Integer. If you have List> then as I noted earlier the List will be created by the runtime while individual matrix/query etc properties

What is the "Type genericType" parameter in the JAX-RS ParamConverterProvider's getConverter() method for?

2016-10-05 Thread Christian Balzer
Hi all, This is probably the wrong place, but... Can anyone explain to me in plain simple English what the genericType parameter below is good for, please? public class FooHandler implements ParamConverterProvider { @Override public ParamConverter getConverter(final Class rawType, Type