[jbosstools-issues] [JBoss JIRA] (JBIDE-16790) Should add/remove Resource Methods and Endpoints when adding/removing @HttpMethod annotation
Xavier Coulon (JIRA)
issues at jboss.org
Tue Mar 18 13:58:10 EDT 2014
Xavier Coulon created JBIDE-16790:
-------------------------------------
Summary: Should add/remove Resource Methods and Endpoints when adding/removing @HttpMethod annotation
Key: JBIDE-16790
URL: https://issues.jboss.org/browse/JBIDE-16790
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: webservices
Affects Versions: 4.1.1.Final
Reporter: Xavier Coulon
Assignee: Xavier Coulon
Fix For: 4.2.0.Beta1
When adding or removing the @HttpMethod annotation on a custom JAX-RS HTTP Method, the Project Explorer should reflect the changes
Eg:
{code}
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@HttpMethod("FOO")
public @interface FOO {
}
{code}
and
{code}
@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.
{code}
--
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
More information about the jbosstools-issues
mailing list