package jp.mixi.triaina.injector.utils;

import jp.mixi.triaina.injector.TriainaApplication;
import jp.mixi.triaina.injector.TriainaInjector;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;

public final class TriainaInjectorUtils {
    private TriainaInjectorUtils() {
    }

    public static void injectMembersWithoutViews(Context context, Object obj) {
        TriainaInjector injector = ((TriainaApplication) context.getApplicationContext()).getInjector(context);
        injector.injectMembersWithoutViews(obj);
    }

    public static void injectViewMembers(Context context, Activity activity) {
        TriainaInjector injector = ((TriainaApplication) context.getApplicationContext()).getInjector(context);
        injector.injectViewMembers(activity);
    }

    public static void injectViewMembers(Context context, Fragment fragment) {
        TriainaInjector injector = ((TriainaApplication) context.getApplicationContext()).getInjector(context);
        injector.injectViewMembers(fragment);
    }

    public static void injectMembers(Context context, Object obj) {
        TriainaInjector injector = ((TriainaApplication) context.getApplicationContext()).getInjector(context);
        injector.injectMembers(obj);
    }
}

@@ -1282,10 +1282,168 @@
 ;%0A    %7D%0A
+    %0A    public static void destroyInjector(Context context) %7B%0A        ((TriainaApplication) context.getApplicationContext()).destroyInjector(context);%0A    %7D%0A
 %7D%0A

Add destroyInjector method to TriainaInjectorUtils