[jbosstools-issues] [JBoss JIRA] (JBIDE-16790) Should add/remove Resource Methods and Endpoints when adding/removing @HttpMethod annotation
Radoslav Rábara (JIRA)
issues at jboss.org
Tue May 20 10:00:58 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-16790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radoslav Rábara closed JBIDE-16790.
-----------------------------------
Resolution: Done
All described scenarios works:
- adding/removing of @FOO annotation is reflected in JAX-RS Explorer
- removing of @HttpMethod("FOO") meta-annotation causes removal of affected endpoints from the JAX-RS Explorer
Verified with JBT 4.2.0 Beta2-v20140512
> 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: Radoslav Rábara
> Fix For: 4.2.0.Beta2
>
> Attachments: httpMethod01.jpg, httpMethod02.jpg, httpMethod03.jpg
>
>
> 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();
> }
> }
> {code}
> Current workaround: the project needs to be rebuilt to see the changes.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jbosstools-issues
mailing list