package roboguice.util; import java.util.concurrent.Executor; import roboguice.RoboGuice; import android.content.Context; import android.os.Handler; @SuppressWarnings("deprecation") public abstract class RoboAsyncTask<ResultT> extends SafeAsyncTask<ResultT> { protected Context context; protected RoboAsyncTask(Context context) { this.context = context; RoboGuice.getInjector(context).injectMembers(this); } protected RoboAsyncTask(Context context, Handler handler) { super(handler); this.context = context; RoboGuice.getInjector(context).injectMembers(this); } protected RoboAsyncTask(Context context, Handler handler, Executor executor) { super(handler, executor); this.context = context; RoboGuice.getInjector(context).injectMembers(this); } protected RoboAsyncTask(Context context, Executor executor) { super(executor); this.context = context; RoboGuice.getInjector(context).injectMembers(this); } public Context getContext() { return context; } }