Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-239

Support for generics as return type

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • Providers
    • None

    Description

      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.

      Attachments

        Activity

          People

            jramos Jesse A. Ramos
            juergen.zimmermann Juergen Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: