// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/injectableelements/base/BaseInjectionActivity.java
// public abstract class BaseInjectionActivity<T> extends AppCompatActivity{
// 
//   protected T activityComponent;
// 
//   @Override protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
//     initDI();
//   }
// 
//   protected abstract void initDI();
// 
//   public AppComponent getAppComponent() {
//     AppComponent appComponent = ((App) getApplication()).getAppComponent();
//     return appComponent;
//   }
// 
//   public Object getActivityComponent() {
//       return activityComponent;
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/B.java
// public class B {}
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/SectionProperty.java
// public class SectionProperty {
// 
// }


import dagger.Module;
import dagger.Provides;
import me.martinez.sergio.daggertwobasearchitecture.di.anotations.scopes.PerActivity;
import me.martinez.sergio.daggertwobasearchitecture.di.anotations.scopes.PerSection;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseInjectionActivity;
import me.martinez.sergio.daggertwobasearchitecture.test.B;
import me.martinez.sergio.daggertwobasearchitecture.test.SectionProperty;
/*
 *  Copyright (C) 2015 Sergio Martinez Open Source Project
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package me.martinez.sergio.daggertwobasearchitecture.di.modules;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 15/7/15.
 */
@Module
public class ActivityModule {

  BaseInjectionActivity baseInjectionActivity;

  public ActivityModule(BaseInjectionActivity baseInjectionActivity) {
    this.baseInjectionActivity = baseInjectionActivity;
  }

// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/injectableelements/base/BaseInjectionActivity.java
// public abstract class BaseInjectionActivity<T> extends AppCompatActivity{
// 
//   protected T activityComponent;
// 
//   @Override protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
//     initDI();
//   }
// 
//   protected abstract void initDI();
// 
//   public AppComponent getAppComponent() {
//     AppComponent appComponent = ((App) getApplication()).getAppComponent();
//     return appComponent;
//   }
// 
//   public Object getActivityComponent() {
//       return activityComponent;
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/B.java
// public class B {}
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/SectionProperty.java
// public class SectionProperty {
// 
// }


// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/modules/ActivityModule.java
import dagger.Module;
import dagger.Provides;
import me.martinez.sergio.daggertwobasearchitecture.di.anotations.scopes.PerActivity;
import me.martinez.sergio.daggertwobasearchitecture.di.anotations.scopes.PerSection;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseInjectionActivity;
import me.martinez.sergio.daggertwobasearchitecture.test.B;
import me.martinez.sergio.daggertwobasearchitecture.test.SectionProperty;

/*
 *  Copyright (C) 2015 Sergio Martinez Open Source Project
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package me.martinez.sergio.daggertwobasearchitecture.di.modules;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 15/7/15.
 */
@Module
public class ActivityModule {

  BaseInjectionActivity baseInjectionActivity;

  public ActivityModule(BaseInjectionActivity baseInjectionActivity) {
    this.baseInjectionActivity = baseInjectionActivity;
  }

  @Provides @PerActivity B provideB(){