Hi
I'm not sure but may be providing a custom mappings file can help ?
See here for more info : http://cwiki.apache.org/CXF20DOC/aegis-21.html
cheers, Sergey
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 22, 2009 4:02 AM
Subject: Re: Handling of generics other than Java Collection types
For example, suppose I need to return two values, an int and a List of Foo. I
know it will work without any special coding if I return just
List<Foo>. But what if I want to return a container for both values,
like ListResults<Foo>...?
public class ListResults<T> {
private List<T> page;
private int totalCount;
public ListResults(List<T> page, int totalCount) {
this.page = page;
this.totalCount = totalCount;
}
public List<T> getPage() {
return page;
}
public int getTotalCount() {
return totalCount;
}
}
--
View this message in context:
http://www.nabble.com/Handling-of-generics-other-than-Java-Collection-types-tp24598487p24599321.html
Sent from the cxf-user mailing list archive at Nabble.com.