Beans can have properties of collection type in Aegis. But you might
need, at least, a dummy setter.

On Tue, Jul 21, 2009 at 11:02 PM, [email protected]<[email protected]> wrote:
>
> 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