Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4226

@Description on class level not "inherited"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.3
    • 2.6
    • None
    • None
    • Unknown

    Description

      This is really a minor one: if you define a resource via interface

      @Description(title = "My resource")
      interface AResource {
      
      
      @GET
      @Description(title = "bar")
      Response foo();
      
      }

      and then implement it:

      class ResourceImpl implements AResource{
      
      @PathParam("id")
      protected int id;
      
      @Context
      private HttpHeaders httpHeaders;
      	
      @Context
      protected UriInfo uriInfo;
      
      public Response foo(){
       return Response.ok().build();
      }
      
      }

      Then the generated WADL document will contain the method description ("bar") but not the resource level description ("My resource").

      Workaround: annotate concrete implementation classes - this is of course rather tedious.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            jboch Jakub Bocheński
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: