Android Open Source - ContactsManager Manager Module






From Project

Back to project page ContactsManager.

License

The source code is released under:

Apache License

If you think the Android project ContactsManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package silverhillapps.com.contactsmanager.manager;
//from   ww w . j a va2s.com
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import silverhillapps.com.contactsmanager.ContactListActivity;
import silverhillapps.com.contactsmanager.db.DatabaseHandler;
import silverhillapps.com.contactsmanager.loader.ContactRepositoryModule;

/**
 * This class defines the module for Manager class injection
 */

@Module(
        injects = ContactListActivity.class,
        includes = {
                ContactRepositoryModule.class
        }
)
public class ManagerModule {

    @Provides @Singleton ManagerInterface provideManager() {
        return new LoaderManagerFacade();
    }
}




Java Source Code List

silverhillapps.com.contactsmanager.ApplicationTest.java
silverhillapps.com.contactsmanager.CMApplication.java
silverhillapps.com.contactsmanager.ContactDetailActivity.java
silverhillapps.com.contactsmanager.ContactListActivity.java
silverhillapps.com.contactsmanager.adapter.ContactListAdapter.java
silverhillapps.com.contactsmanager.conf.Constants.java
silverhillapps.com.contactsmanager.db.DatabaseHandler.java
silverhillapps.com.contactsmanager.loader.ContactRepositoryModule.java
silverhillapps.com.contactsmanager.loader.ContactRepository.java
silverhillapps.com.contactsmanager.loader.RepositoryReceiver.java
silverhillapps.com.contactsmanager.manager.LoaderManagerFacade.java
silverhillapps.com.contactsmanager.manager.ManagerInterface.java
silverhillapps.com.contactsmanager.manager.ManagerModule.java
silverhillapps.com.contactsmanager.model.Contact.java
silverhillapps.com.contactsmanager.rest.ContactsRestClient.java
silverhillapps.com.contactsmanager.rest.RestContactRepository.java
silverhillapps.com.contactsmanager.utils.ConnectionUtils.java