You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2013/07/13 22:14:03 UTC

[jira] [Closed] (WINK-239) Support for generics as return type

     [ https://issues.apache.org/jira/browse/WINK-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek closed WINK-239.
---------------------------------

    
> Support for generics as return type
> -----------------------------------
>
>                 Key: WINK-239
>                 URL: https://issues.apache.org/jira/browse/WINK-239
>             Project: Wink
>          Issue Type: New Feature
>          Components: Providers
>            Reporter: Juergen Zimmermann
>            Assignee: Jesse Ramos
>             Fix For: 1.0
>
>
> It would be good if Wink supports generics as a return type of resource methods (as does Jersey and RESTEasy), e.g.
> @GET
> @Path("/customers")
> @Produces({APPLICATION_XML, TEXT_XML, APPLICATION_JSON})
> public List<Customer> findCustomers(...)
> The Jersey solution: Use classname + "s", e.g. <Customers>
> The RESTEasy solution: Use classname + "Collection", e.g. "CustomerCollection"
> Actually I'd prefer the RESTEasy naming. The Jersey naming is also fine - it's more important that Wink supports generics at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira