[JBoss JIRA] (JBIDE-13003) No support for inheritance in JAX-RS API scan
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-13003?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-13003:
----------------------------------
Fix Version/s: (was: 4.3.0.Alpha1)
Affects Version/s: 4.3.x
> No support for inheritance in JAX-RS API scan
> ---------------------------------------------
>
> Key: JBIDE-13003
> URL: https://issues.jboss.org/browse/JBIDE-13003
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: webservices
> Affects Versions: 4.0.0.Alpha2, 4.3.x
> Reporter: Ron Ratovsky
> Assignee: Xavier Coulon
> Labels: jax-rs
>
> Assume:
> class BaseRest {
> @POST
> public Response save(Object o) {
> ....
> }
> }
> @Path("/url")
> class RealRest extends BaseRest {}
> The JAX-RS tools won't add a "POST /url" entry to the JAX-RS calls overview.
> While not tested (due to another bug) - they may also apply to definitions of @PathParam's in the parent class.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (JBIDE-13279) Generate JAX-RS Resource class from POJO
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-13279?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-13279:
----------------------------------
Fix Version/s: LATER
(was: 4.3.x)
> Generate JAX-RS Resource class from POJO
> ----------------------------------------
>
> Key: JBIDE-13279
> URL: https://issues.jboss.org/browse/JBIDE-13279
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: webservices
> Affects Versions: 4.0.0.Final
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Labels: jax-rs
> Fix For: LATER
>
>
> Provide a way to generate a JAX-RS resource skeleton from a selected POJO (no need to be annotated with anything particular)
> A wizard could let the user select the endpoints (@GET @GET@PATH("/{id"), etc.) that she want to have.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (JBIDE-17477) Remember to skip application creation in JAX-RS Wizard
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17477?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-17477:
----------------------------------
Fix Version/s: LATER
(was: 4.3.x)
> Remember to skip application creation in JAX-RS Wizard
> ------------------------------------------------------
>
> Key: JBIDE-17477
> URL: https://issues.jboss.org/browse/JBIDE-17477
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: webservices
> Affects Versions: 4.2.0.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Labels: jax-rs
> Fix For: LATER
>
>
> The JAX-RS Resource creation wizard provides a page to create a JAX-RS Application in the project if none was found, but the user may want to skip this step if she plans to deploy her application in a non JEE6/7 environment - which would require a custom configuration (e.g.: a servlet dispatcher) to activate and use the JAX-RS resources.
> The wizard should remember that choice, so the user would not have to explicitly skip this step for each new JAX-RS resource she wants to create.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (JBIDE-16734) JAX-RS Validation: should report an error when resource is annotated with @javax.inject.Singleton and has JAX-RS fields
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-16734?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-16734:
----------------------------------
Fix Version/s: LATER
(was: 4.3.x)
> JAX-RS Validation: should report an error when resource is annotated with @javax.inject.Singleton and has JAX-RS fields
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-16734
> URL: https://issues.jboss.org/browse/JBIDE-16734
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: webservices
> Affects Versions: 4.1.1.Final
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Labels: jax-rs
> Fix For: LATER
>
>
> JAX-RS Validation: should report an error when resource is annotated with @javax.inject.Singleton and has JAX-RS fields.
> Eg:
> {code}
> @Path("resource")
> @Singleton
> public static class MySingletonResource {
>
> @QueryParam("query")
> String param; // WRONG: initialization of application will fail as you cannot
> // inject request specific parameters into a singleton resource.
>
> @GET
> public String get() {
> return "query param: " + param;
> }
> }
> {code}
> The exception exists for specific request objects which can injected even into constructor or class fields. For these objects the runtime will inject proxies which are able to simultaneously server more request. These request objects are HttpHeaders, Request, UriInfo, SecurityContext. These proxies can be injected using the @Context annotation
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months