package com.github.aleksandermielczarek.napkin;

import android.content.Context;

/**
 * Created by Aleksander Mielczarek on 14.05.2016.
 */
public class Napkin {

    private Napkin() {

    }

    public static <T> T provideComponent(Context context) {
        Context applicationContext = context.getApplicationContext();
        ComponentProvider<T> componentProvider = (ComponentProvider<T>) applicationContext;
        return componentProvider.provideComponent();
    }
}

@@ -468,11 +468,318 @@
 );%0A    %7D
+%0A%0A    public static %3CT%3E T provideComponent(Context context, Class%3CT%3E componentClass) %7B%0A        Context applicationContext = context.getApplicationContext();%0A        ComponentProvider%3CT%3E componentProvider = (ComponentProvider%3CT%3E) applicationContext;%0A        return componentProvider.provideComponent();%0A    %7D
 %0A%7D%0A

Add new method for component retrieve