Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jlmd.android.newfilmsmvp.di; //from ww w. ja v a 2s . com import android.app.Application; import android.content.Context; import com.jlmd.android.newfilmsmvp.di.module.RootModule; import dagger.ObjectGraph; /** * @author jlmd */ public class AppApplication extends Application { private ObjectGraph objectGraph; @Override public void onCreate() { super.onCreate(); injectDependencies(); } private void injectDependencies() { objectGraph = ObjectGraph.create(new RootModule(this)); objectGraph.inject(this); } public void inject(Object object) { objectGraph.inject(object); } }