On 15/10/14 14:16, shisholik wrote:


You'd need to use JAX-RS 2.0 @BeanParam:

@PUT
public SuccessResult updateNotification(@BeanParam
   UpdateNotificationsResource notifications)


Thank you, I didn't know about BeanParam:)
Unfortunately I can't check it right now, because I have some strange
problems with creating new instance of my class in
org.apache.cxf.jaxrs.utils.JAXRSUtils#createBeanParamValue. Probably used
wrong ClassLoader (I have OSGi application).
I can't realize for what case we need load class that already exist:
ClassLoaderUtils.loadClass(clazz.getName(), JAXRSUtils.class).newInstance();
In fact I can just do clazz.newInstance(); and get correct instance.

It was a bizarre code indeed, no idea how I ended up typing that code...Got it fixed, thanks

Sergey




and have individual UpdateNotificationsResource setters annotated with
QueryParam

Sergey




--
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com

Reply via email to