Created
August 13, 2015 15:51
-
-
Save patrykpoborca/ccb1589712e323b369f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//dagger 2 implementation of a module | |
@Module | |
public class MyModule { | |
@Provides | |
public MyDependency providesMyDependency(){ | |
return new MyDependency(); | |
} | |
@Provides | |
public MyClass providesMyClass(MyDependency myDependency){ | |
return new MyClass(myDependency); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment