[JBoss JIRA] (JBIDE-17477) Remember to skip application creation in JAX-RS Wizard
by Marián Labuda (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17477?page=com.atlassian.jira.plugi... ]
Marián Labuda updated JBIDE-17477:
----------------------------------
Labels: jax-rs (was: )
> 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: 4.3.x
>
>
> 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.8#6338)
11 years, 4 months
[JBoss JIRA] (JBIDE-17731) Improve the JAX-RS ParamConverterProvider validation
by Marián Labuda (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17731?page=com.atlassian.jira.plugi... ]
Marián Labuda updated JBIDE-17731:
----------------------------------
Labels: jax-rs (was: )
> Improve the JAX-RS ParamConverterProvider validation
> ----------------------------------------------------
>
> Key: JBIDE-17731
> URL: https://issues.jboss.org/browse/JBIDE-17731
> 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: 4.3.x
>
>
> The tooling could analyze a bit more the code for the ParamConverterProvider and find all nested/related ParamConverter types and retrieve the Parameter Type to see what "param bean" is supported by the ParamConverter.
> Eg:
> {code}
> @Provider
> public class Converter implements ParamConverterProvider {
> private ParamConverter<Car> carConverter = new ParamConverter<Car>() {
> @Override
> public Car fromString(String arg0) {
> Car car = new Car();
> car.setBrand(arg0);
> return car;
> }
> @Override
> public String toString(Car arg0) {
> return arg0.getBrand();
> }
> };
> @Override
> public <T> ParamConverter<T> getConverter(Class<T> arg0, Type arg1,
> Annotation[] arg2) {
> if(arg0.equals(Car.class)) {
> return (ParamConverter<T>) carConverter;
> }
> return null;
> }
> }
> {code}
> The tooling should retrieve the anonymous {{ParamConverter<Car>}}
> It should also work when the param converter is in its own class.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 4 months