Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16790

Should add/remove Resource Methods and Endpoints when adding/removing @HttpMethod annotation

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.1.Final
    • Fix Version/s: 4.2.0.Beta2
    • Component/s: webservices
    • Labels:
      None

      Description

      When adding or removing the @HttpMethod annotation on a custom JAX-RS HTTP Method, the Project Explorer should reflect the changes

      Eg:

      @Target(ElementType.METHOD)
      @Retention(RetentionPolicy.RUNTIME)
      @HttpMethod("FOO")
      public @interface FOO {
      
      }
      

      and

      @Encoded
      @Path(value=CustomerResource.URI_BASE) 
      @Consumes(MediaType.APPLICATION_XML)
      @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
      public class CustomerResource {
      
      	@PersistenceContext
      	private EntityManager entityManager = null;
      
      	public static final String URI_BASE = "/customers";
      	
      	@FOO
      	@Consumes(MediaType.APPLICATION_XML)
      	public Response fooCustomer(Customer customer) {
      		return Response.created(null).build();
      	}
      }
      

      Current workaround: the project needs to be rebuilt to see the changes.

        Gliffy Diagrams

          Attachments

          1. httpMethod01.jpg
            httpMethod01.jpg
            97 kB
          2. httpMethod02.jpg
            httpMethod02.jpg
            99 kB
          3. httpMethod03.jpg
            httpMethod03.jpg
            102 kB

            Activity

              People

              • Assignee:
                rrabara Radoslav Rábara
                Reporter:
                xcoulon Xavier Coulon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: