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&lt;Foo&gt;. But what if I want to return a container for both values,
like ListResults&lt;Foo&gt;...?


public class ListResults&lt;T&gt; {
private List&lt;T&gt; page;
private int totalCount;

public ListResults(List&lt;T&gt; page, int totalCount) {
this.page = page;
this.totalCount = totalCount;
}

public List&lt;T&gt; 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.


Reply via email to