1 Reply Latest reply on Feb 26, 2013 7:38 PM by alberto_souza

    resolve ambiguity of dependencies

    alberto_souza

      Hi, Does Weld support something like Spring's ROLE_INFRASTRUCTURE and APPLICATION? I ask that because Spring uses this feature to resolve dependencies. If you are building a framework using CDI as injection provider, this would be a nice feature. The framework can provide its components and, if the application wants, this component could be overriden without any additional configuration.

       

       

      What do you think?

        • 1. Re: resolve ambiguity of dependencies
          alberto_souza

          Other thing that i thought. If two classes have qualifiers to be injected in some injectionpoint, the last resolution rule could be: "If a class has 2 qualifiers and other has 3 and both are candidates for a injectionpoint with 2 of those qualifiers, the class with 2 should have its object injected"