[cdi-dev] Re : Question about conversation.begin if transient
Adrian Gonzalez
adr_gonzalez at yahoo.fr
Sun Dec 18 12:11:32 EST 2011
Hi Pete,
It just seems to me this 2 line code snippet is written so often, it would benefit to be a one code liner.
________________________________
De : Pete Muir <pmuir at redhat.com>
À : Adrian Gonzalez <adr_gonzalez at yahoo.fr>
Cc : "cdi-dev at lists.jboss.org" <cdi-dev at lists.jboss.org>
Envoyé le : Vendredi 16 Décembre 2011 12h05
Objet : Re: [cdi-dev] Question about conversation.begin if transient
I don't personally see much wrong with the code snippet today, it seems pretty clear…
On 15 Dec 2011, at 16:24, Adrian Gonzalez wrote:
> Hello,
>
> This question has surely already been asked, but I'm looking over and over the following code :
> if (conversation.isTransient()) {
> conversation.begin();
> }
>
> Is it possible to create a single method in Conversation class to handle this ?
> Something like conversation.beginIfTransient() ? (of course with a better name :) ).
>
> WDYT ?
>
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20111218/8fde2f9a/attachment.html
More information about the cdi-dev
mailing list