Back to project page NerdZoo.
The source code is released under:
Apache License
If you think the Android project NerdZoo 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.bignerdranch.android.nerdzoo; /* w w w .ja va2s . c o m*/ import com.bignerdranch.android.nerdzoo.controller.AboutFragment; import com.bignerdranch.android.nerdzoo.controller.AnimalActivity; import com.bignerdranch.android.nerdzoo.controller.AnimalFragment; import com.bignerdranch.android.nerdzoo.controller.MainActivity; import com.bignerdranch.android.nerdzoo.controller.ZooFragment; import com.bignerdranch.android.nerdzoo.model.Zoo; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; @Module( injects = { MainActivity.class, ZooFragment.class, AboutFragment.class, AnimalActivity.class, AnimalFragment.class }, complete = true) public class BaseModule { private final BaseApplication mApplication; public BaseModule(BaseApplication application) { mApplication = application; } @Provides @Singleton public Zoo provideZoo() { return new Zoo(); } }