Double-sided seam and weld

I am developing a JAVA EE 6. I am using CDI extensively, my question is: @Inject and @Produces are the same as @In and @Out for Seam? Are the @In and @Out annotations that are still in use now that we have CDI?

+5
source share
1 answer

Added annotations @In and @Out used now that we have CDI?

@Inand @Outare Seam 2 annotations, so they are not used in Java EE 6.

My question is: @Inject and @Produces the same as @In and @Out for Seam?

@Inject @Produces , . , Java EE 6 , ( , ), Seam 2 outjection , - - ( , )

:

  • Seam 2 (, ) . , usecase (), ().
  • Java EE 6, . . , , :

      @Produces @LoggedIn User getCurrentUser() {
          return user;
       }
    

? , ...

. Weld/Java EE 6 () . -: -)

, : Java EE 6, ( , ), Seam 2 ( ).

+11

All Articles