2 Replies Latest reply on May 23, 2011 7:01 AM by Ales Justin

    CDI: Get a list of matching beans

    Ondrej Zizka Master

      Hi,

       

      can I get a list of beans matching given annotations, using anotations?

      I mean, can I convert this

      java.util.Set<Bean<?>> myBeans = getBeans(Foobar.class, annotation1, ann2, ...);
      

      to this?

       

      @Inject @Anno1 @Anno2 java.util.Set<Bean<?>> myBeans;
      

      Or any plans for it?

       

      Thanks,

      Ondra