Created
March 3, 2015 23:02
-
-
Save lukaspili/11bacf7ceb98da1e3f42 to your computer and use it in GitHub Desktop.
This file contains 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
@Singleton | |
public class ApiManager { | |
@Inject | |
Api api; | |
@Inject | |
public ApiManager() { | |
} | |
public void useApi() { | |
api.itWorks(); | |
} | |
} | |
@Component(modules = {ApiModule.class, DatabaseModule.class}) | |
@Singleton | |
public interface DataAccessComponent { | |
Api api(); | |
Database database(); | |
ApiManager apiManager(); | |
void inject(SimpleActivity simpleActivity); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment