Method injection using Dagger 2
问题 I haven't managed to find a good explanation/example on method injection using Dagger 2. Could someone please help me understand? Example: @Inject public Dinner makeDinner(Pasta pasta, Sauce sauce) { mPan.add(pasta); mPan.add(sauce); return mPan.cookDinner(); } So if I annotate my method with @Inject , am I correct to assume that the arguments in the method signature will be injected with defined objects from the object graph? How can I use this method in my code then? It will still expect me