// 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());
//   }
// 
// }


import dagger.Module;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseFragment;
/*
 *  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 16/7/15.
 */
@Module
public class FragmentModule {
// 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
import dagger.Module;
import me.martinez.sergio.daggertwobasearchitecture.di.injectableelements.base.BaseFragment;

/*
 *  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 16/7/15.
 */
@Module
public class FragmentModule {
  BaseFragment baseFragment;