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

[jsr339-experts] Convention Over Configuration

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 11 Mar 2011 08:49:25 +0100

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.