Hi Thiago

I agree. It would be great if your could file an issue. Sometimes it
really makes no sense to separate an interface from the implementation
or sometimes it would be handy to annotate the implementation instead
of the interface. In case of JAX-RS, creating interfaces makes the
code harder to read, because you need to go to the interface to see
the web actions, paths etc.

@POST
@Consumes({"application/json", "text/xml"})
@Produces({"application/json", "text/xml"})
@CommitAfter
public Response create(@Valid Label label);


Kind regards

Thilo

On Tue, Apr 10, 2012 at 3:44 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Tue, 10 Apr 2012 05:44:13 -0300, Taha Hafeez Siddiqi
> <tawus.tapes...@gmail.com> wrote:
>
>> Hi
>
>
> Hi!
>
>
>> Advices (@commitafter) work on service interfaces. Also the annotation
>> should be on the interface method not on the implementation.
>
>
> I really dislike this fact (annotation in the interface method). I think
> I'll file a JIRA if there isn't one.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>



-- 
Thilo Tanner

Astina AG
Hardturmstrasse 105
CH-8005 Zürich

Phone:  +41 44 500 77 10
Fax:    +41 44 500 77 11
Direct: +41 44 500 77 16
Mobile: +41 79 506 46 36

Web:    http://www.astina.ch

***
Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger
bestimmt und kann vertrauliche Informationen enthalten. Fuer den Fall,
dass sie von nicht berechtigten Personen empfangen wird, bitten wir
diese hoeflich, die Mitteilung an Astina zurueckzusenden und
anschliessend
die Mitteilung mit allen Anhaengen sowie allfaellige Kopien zu
vernichten bzw. zu loeschen. Der Gebrauch der Information ist verboten.

This message is intended only for the named recipient and may contain
confidential or privileged information. If you have received it in
error, please advise the sender or Astina by return e-mail and delete
this message and any attachments. Any unauthorised use or dissemination
of this information is strictly prohibited.
***

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to