// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/Config.java
// public interface Config {
// 
//     public String getUserName();
// 
//     public void setUserName(String userName);
// 
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/ConfigManager.java
// public class ConfigManager implements Config {
// 
//     private final static String DEFAULT_USER = "William";
// 
//     private String mUserName = DEFAULT_USER;
// 
//     @Override
//     public String getUserName() {
//         return mUserName;
//     }
// 
//     @Override
//     public void setUserName(String userName) {
//         mUserName = userName;
//     }
// }


import com.newegg.tr.dagger2prac.model.config.Config;
import com.newegg.tr.dagger2prac.model.config.ConfigManager;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
package com.newegg.tr.dagger2prac.view.module;




/**
 * Created by william on 15/2/10.
 */
@Module
public class GlobleModule {

    @Provides
    @Singleton
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/Config.java
// public interface Config {
// 
//     public String getUserName();
// 
//     public void setUserName(String userName);
// 
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/config/ConfigManager.java
// public class ConfigManager implements Config {
// 
//     private final static String DEFAULT_USER = "William";
// 
//     private String mUserName = DEFAULT_USER;
// 
//     @Override
//     public String getUserName() {
//         return mUserName;
//     }
// 
//     @Override
//     public void setUserName(String userName) {
//         mUserName = userName;
//     }
// }


// Path: app/src/release/java/com/newegg/tr/dagger2prac/view/module/GlobleModule.java
import com.newegg.tr.dagger2prac.model.config.Config;
import com.newegg.tr.dagger2prac.model.config.ConfigManager;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;

package com.newegg.tr.dagger2prac.view.module;




/**
 * Created by william on 15/2/10.
 */
@Module
public class GlobleModule {

    @Provides
    @Singleton
    public Config provideConfig(){