// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/components/SectionComponentMain.java
// @PerSection
// @Component( dependencies = MainActivityComponent.class, modules = TestSectionModule.class)
// public interface SectionComponentMain extends
//     FirstFragment.Pluser,
//     SecondFragment.Pluser{
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/injectableelements/base/BaseFragment.java
// public abstract class BaseFragment<T> extends Fragment {
// 
//   protected T fragmentComponent;
// 
//   @Override public void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
//     initDIComponent();
//     setRetainInstance(true);
//   }
// 
//   public T getFragmentComponent() {
//     return fragmentComponent;
//   }
// 
//   protected abstract void initDIComponent();
// 
//   /**
//    * Gets a component for dependency injection by its type.
//    */
//   protected <C> C getParentComponent(Class<C> componentType) {
//     return componentType.cast(((BaseInjectionActivity) getActivity()).getActivityComponent());
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/modules/FragmentModule.java
// @Module
// public class FragmentModule {
//   BaseFragment baseFragment;
// 
//   public FragmentModule(BaseFragment baseFragment) {
//     this.baseFragment = baseFragment;
//   }
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/fragments/sections/testsection/secondstep/presentation/SecondFragmentPresenter.java
// public class SecondFragmentPresenter {
// 
//   private final SecondFragmentView secondFragmentView;
// 
//   public SecondFragmentPresenter(SecondFragmentView secondFragmentView) {
//     this.secondFragmentView = secondFragmentView;
//   }
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/fragments/sections/testsection/secondstep/presentation/SecondFragmentView.java
// public interface SecondFragmentView {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/D.java
// public class D {
// 
//   @Inject
//   public D() {
// 
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/E.java
// public class E {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/NotScopedProperty.java
// public class NotScopedProperty {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/SectionProperty.java
// public class SectionProperty {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/utils/Log4Me.java
// public interface Log4Me {
//   void log(String message, int logLevel, Object clazz);
//   void log(String message, int logLevel);
//   void log(String message);
// }


import me.martinez.sergio.daggertwobasearchitecture.test.E;
import me.martinez.sergio.daggertwobasearchitecture.test.NotScopedProperty;
import me.martinez.sergio.daggertwobasearchitecture.test.SectionProperty;
import me.martinez.sergio.daggertwobasearchitecture.utils.Log4Me;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import javax.inject.Inject;
import me.martinez.sergio.daggertwobasearchitecture.R;
import me.martinez.sergio.daggertwobasearchitecture.di.components.SectionComponentMain;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseFragment;
import me.martinez.sergio.daggertwobasearchitecture.di.modules.FragmentModule;
import me.martinez.sergio.daggertwobasearchitecture.fragments.sections.testsection.secondstep.presentation.SecondFragmentPresenter;
import me.martinez.sergio.daggertwobasearchitecture.fragments.sections.testsection.secondstep.presentation.SecondFragmentView;
import me.martinez.sergio.daggertwobasearchitecture.test.D;
/*
 *  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.fragments.sections.testsection.secondstep;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 15/7/15.
 */
public class SecondFragment extends BaseFragment<SecondFragmentComponent> implements
    SecondFragmentView{

  @Inject SecondFragmentPresenter secondFragmentPresenter;
  @Inject SectionProperty sectionProperty;
  @Inject NotScopedProperty notScopedProperty;
  @Inject List<String> diInjectionHistory;
  @Inject Log4Me logger;
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/components/SectionComponentMain.java
// @PerSection
// @Component( dependencies = MainActivityComponent.class, modules = TestSectionModule.class)
// public interface SectionComponentMain extends
//     FirstFragment.Pluser,
//     SecondFragment.Pluser{
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/injectableelements/base/BaseFragment.java
// public abstract class BaseFragment<T> extends Fragment {
// 
//   protected T fragmentComponent;
// 
//   @Override public void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
//     initDIComponent();
//     setRetainInstance(true);
//   }
// 
//   public T getFragmentComponent() {
//     return fragmentComponent;
//   }
// 
//   protected abstract void initDIComponent();
// 
//   /**
//    * Gets a component for dependency injection by its type.
//    */
//   protected <C> C getParentComponent(Class<C> componentType) {
//     return componentType.cast(((BaseInjectionActivity) getActivity()).getActivityComponent());
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/di/modules/FragmentModule.java
// @Module
// public class FragmentModule {
//   BaseFragment baseFragment;
// 
//   public FragmentModule(BaseFragment baseFragment) {
//     this.baseFragment = baseFragment;
//   }
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/fragments/sections/testsection/secondstep/presentation/SecondFragmentPresenter.java
// public class SecondFragmentPresenter {
// 
//   private final SecondFragmentView secondFragmentView;
// 
//   public SecondFragmentPresenter(SecondFragmentView secondFragmentView) {
//     this.secondFragmentView = secondFragmentView;
//   }
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/fragments/sections/testsection/secondstep/presentation/SecondFragmentView.java
// public interface SecondFragmentView {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/D.java
// public class D {
// 
//   @Inject
//   public D() {
// 
//   }
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/E.java
// public class E {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/NotScopedProperty.java
// public class NotScopedProperty {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/test/SectionProperty.java
// public class SectionProperty {
// 
// }
// 
// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/utils/Log4Me.java
// public interface Log4Me {
//   void log(String message, int logLevel, Object clazz);
//   void log(String message, int logLevel);
//   void log(String message);
// }


// Path: app/src/main/java/me/martinez/sergio/daggertwobasearchitecture/fragments/sections/testsection/secondstep/SecondFragment.java
import me.martinez.sergio.daggertwobasearchitecture.test.E;
import me.martinez.sergio.daggertwobasearchitecture.test.NotScopedProperty;
import me.martinez.sergio.daggertwobasearchitecture.test.SectionProperty;
import me.martinez.sergio.daggertwobasearchitecture.utils.Log4Me;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import javax.inject.Inject;
import me.martinez.sergio.daggertwobasearchitecture.R;
import me.martinez.sergio.daggertwobasearchitecture.di.components.SectionComponentMain;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseFragment;
import me.martinez.sergio.daggertwobasearchitecture.di.modules.FragmentModule;
import me.martinez.sergio.daggertwobasearchitecture.fragments.sections.testsection.secondstep.presentation.SecondFragmentPresenter;
import me.martinez.sergio.daggertwobasearchitecture.fragments.sections.testsection.secondstep.presentation.SecondFragmentView;
import me.martinez.sergio.daggertwobasearchitecture.test.D;

/*
 *  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.fragments.sections.testsection.secondstep;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 15/7/15.
 */
public class SecondFragment extends BaseFragment<SecondFragmentComponent> implements
    SecondFragmentView{

  @Inject SecondFragmentPresenter secondFragmentPresenter;
  @Inject SectionProperty sectionProperty;
  @Inject NotScopedProperty notScopedProperty;
  @Inject List<String> diInjectionHistory;
  @Inject Log4Me logger;
  @Inject E e;