class ListNews extends ArrayList<News>{}, 

but I think Jackson has a class TypeReference to register a 
custom non primitive object I use it a lot with JAX-RS like this:

On a client:

ObjectMapper = new ObjectMapper();
List = mapper.readValue(clientResource.get().getText(),new
TypeReference<ArrayList&lt;News>>() {};

or you can create a static class that register all custom type you need

static class RegisteredType {
      TypeReference ListNews = new TypeReference<ArrayList&lt;News>>() {};
}



--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-in-Action-Error-in-the-listing-9-10-tp7519398p7520176.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2956992

Reply via email to