Back to project page android-test-demo.
The source code is released under:
MIT License
If you think the Android project android-test-demo 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 org.andydyer.androidtestdemo; //from ww w . jav a2 s . c o m import android.app.Application; import lombok.Getter; import lombok.NonNull; /** * Created by andy on 8/23/14. */ public class DemoApplication extends Application { private dagger.ObjectGraph objectGraph; @Getter static DemoApplication instance; @Override public void onCreate() { super.onCreate(); instance = this; objectGraph = dagger.ObjectGraph.create(Modules.list()); } public void inject(@NonNull Object dependent) { objectGraph.inject(dependent); } }