1 Reply Latest reply on Jan 2, 2010 2:22 AM by gavin.king

    Can't read metadata from producers

    agori

      I need to read metadata from a producer, but I don't find the way:


      @Produces @Param("id") Integer getUserId() {...}
      @Produces @Param("cat") Integer getCategory() {...}
      



      where Param is a qualifier with value as Nonbinding member.
      Then I want to extract the value of Param in my programmatic injection:


      @Inject @Any Instance<Object> paramSource;
      ...
      
      source = paramSource.select(new AnnotationListeral<Param>());
      


      now I'd like to select the producer which param value is equal to id.
      Is it impossible or am I missing something?