Back to project page ascent.
The source code is released under:
Apache License
If you think the Android project ascent 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 net.jamesbaca.ascent.mymodule.app; /*from w w w .j a v a 2 s . c o m*/ import android.app.Application; import java.util.Arrays; import java.util.List; import dagger.ObjectGraph; /** * Created by jamesbaca on 10/17/14. */ public class DemoApplication extends Application { private ObjectGraph mApplicationGraph; @Override public void onCreate() { super.onCreate(); mApplicationGraph = ObjectGraph.create(getModules().toArray()); } protected List<Object> getModules() { return Arrays.<Object>asList(new DemoApplicationModule(this)); } ObjectGraph getApplicationGraph() { return mApplicationGraph; } }