3 Replies Latest reply on Jul 30, 2013 9:53 AM by Nicklas Karlsson

    Unsatisfied deps in migration to Weld2

    Nicklas Karlsson Master

      Jozef tried at one point explaining the reason to me on irc but I was unable to apply the knowledge so I'm back with an example

       

      I have an interface

       

       

      public interface Dummy
      {
      }
      

       

      with two implementations

       

      public class Foo implements Dummy
      {
      }
      

       

       

      public class Bar implements Dummy
      {
      }
      
      

       

      and an abstract manager

       

       

      public abstract class DummyManager<F extends Dummy, B extends Dummy>
      {
      }
      

       

       

      and then an implementation

       

       

      @ApplicationScoped
      public class MyDummyManager extends DummyManager<Foo, Bar>
      {
      }
      
      

       

      But I'm unable to do a

       

       

         @Inject
         private DummyManager<Dummy, Dummy> dummyManager;
      

       

       

      anywhere. How come? Why doesn't the MyDummyManager work? Foo and Bar both implement Dummy, right?