jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Convention Over Configuration

From: Roberto Chinnici <roberto.chinnici_at_oracle.com>
Date: Fri, 11 Mar 2011 15:50:16 -0800

  I added this issue as JAX_RS_SPEC-59 [1].

[1] http://java.net/jira/browse/JAX_RS_SPEC-59

On 3/10/11 11:49 PM, Adam Bien wrote:
> Hi Guilherme,
>
> you mean:
>
>>>> @Path("something")
>>>> @GET
>>>> public Response something(...
>>>>
>>>> @Path("something")
>>>> class SomethingResource {
>>>> }
> should be
>
>
> @Path
> public Response something
>
> and
>
> @Path
> class SomethingResource ?
>
>
> Then +1. I get questions in every workshop, why we have to specify that redundantly. We cannot go to far, because a JAX-Resource can be also an EJB or managed bean at the same time.
>
> In general - we should minimize the total amount of required annotations.
>