// Path: lib/src/main/java/mortar/lib/inject/Injector.java
// public class Injector {
// 
//   private static ObjectGraph mApplicationGraph;
// 
//   public static <T> T get(Class<T> clazz) {
//     return mApplicationGraph.get(clazz);
//   }
// 
//   public static void inject(Object obj) {
//     mApplicationGraph.inject(obj);
//   }
// 
//   public static <T> T get(Context context, Class<T> clazz) {
//     MortarScope scope = Mortar.getScope(context);
//     ObjectGraph objectGraph = scope.getObjectGraph();
//     return objectGraph.get(clazz);
//   }
// 
//   public static ObjectGraph getApplicationGraph() {
//     return mApplicationGraph;
//   }
// 
//   public static void setApplicationGraph(ObjectGraph applicationGraph) {
//     mApplicationGraph = applicationGraph;
//   }
// 
// }


import android.app.Application;
import dagger.ObjectGraph;
import mortar.Mortar;
import mortar.MortarScope;
import mortar.lib.inject.Injector;
package mortar.lib.application;



public abstract class MortarApplication extends Application {

  private MortarScope rootScope;

  @Override public void onCreate() {
    super.onCreate();

    ObjectGraph applicationGraph = ObjectGraph.create(getRootScopeModules());
// Path: lib/src/main/java/mortar/lib/inject/Injector.java
// public class Injector {
// 
//   private static ObjectGraph mApplicationGraph;
// 
//   public static <T> T get(Class<T> clazz) {
//     return mApplicationGraph.get(clazz);
//   }
// 
//   public static void inject(Object obj) {
//     mApplicationGraph.inject(obj);
//   }
// 
//   public static <T> T get(Context context, Class<T> clazz) {
//     MortarScope scope = Mortar.getScope(context);
//     ObjectGraph objectGraph = scope.getObjectGraph();
//     return objectGraph.get(clazz);
//   }
// 
//   public static ObjectGraph getApplicationGraph() {
//     return mApplicationGraph;
//   }
// 
//   public static void setApplicationGraph(ObjectGraph applicationGraph) {
//     mApplicationGraph = applicationGraph;
//   }
// 
// }


// Path: lib/src/main/java/mortar/lib/application/MortarApplication.java
import android.app.Application;
import dagger.ObjectGraph;
import mortar.Mortar;
import mortar.MortarScope;
import mortar.lib.inject.Injector;

package mortar.lib.application;



public abstract class MortarApplication extends Application {

  private MortarScope rootScope;

  @Override public void onCreate() {
    super.onCreate();

    ObjectGraph applicationGraph = ObjectGraph.create(getRootScopeModules());
    Injector.setApplicationGraph(applicationGraph);