3 Replies Latest reply on Nov 7, 2013 4:24 AM by juergen.zimmermann

    Doubts about @Model and bean-discovery-mode="annotated"

    juergen.zimmermann


      In https://issues.jboss.org/browse/CDI-406 I understand Mark Struberg's argument against making @Model a bean defining annotation. However, if you are using bean-discovery-mode="annotated" in beans.xml, then the classes annotated with @Model are not detected.

       

      Does it make sense to recommend @Model for CDI 1.1 applications? Or would it be better to declare @Model as deprecated?