3 Replies Latest reply on Aug 30, 2010 2:58 AM by alfredpeterson

    annotation style

    nimo22

      Hello,


      where lies the difference between this style




      @SessionScoped @Named
      public class Bean {..}





      and this:




      public @SessionScoped @Named class Bean {..}



        • 1. Re: annotation style
          nickarls

          semantically nothing. Just a matter of style. I prefer annotations first.

          • 2. Re: annotation style
            shane.bryzak

            As Nik said, semantically nothing.  However the second form reads as natural english, one of the factors Gavin took into account when naming the CDI annotations.  Expect to see more of it, especially since many of the Seam team members have adopted this declaration style.

            • 3. Re: annotation style
              alfredpeterson

              Hi,


              Thanks for the replies...i had been new to this and this is the query i am looking for,but frankly not still much convinced just learning the things..but now got the good understanding about the bugs..


              Thanks:
              Alfred