1 Reply Latest reply on Feb 4, 2014 5:25 AM by Jozef Hartinger

    Qualifier implementation in CDI is overkill!  Simple single @Qualifier("text-label") would exactly same thing.  (Same in Google Guice)

    Colbet Philippe Newbie

      I find that design of qualifier annotation poorly designed.   I understand the purpose of creating qualifier annotations but why all the complexity.   Why create custom annotations which takes a few lines?   It seems like overkill to me.

      A much simpler design would be to create one single annotation with a text label parameter to identify branches or choices.  

      For example an annotation named @Qualifier("text-label") would do the exact same thing without having to create custom user annotations and the complexity.

      I would suggest that JBoss create the @Qualifier annotation and implement it in parallel with custom user annotation.