3 Replies Latest reply on Oct 24, 2013 9:02 AM by shay_matasaro

    Override an ambiguous producer

    dudehook

      Using Weld 2.0.4 in SE.

       

      I don't want to use StartMain, but I do want to use @Parameters, which is hard coded to depend on running StartMain.  So I want to create my own producer method for @Parameters, but I can't because Weld sees both and throws the ambiguous dependency exception.

       

      So, is it possible during weld startup, in an extension, to force the choice between two (or more) ambiguous dependenices?