roboguice.util
Class RoboAsyncTask<ResultT>

java.lang.Object
  extended by roboguice.util.SafeAsyncTask<ResultT>
      extended by roboguice.util.RoboAsyncTask<ResultT>
Type Parameters:
ResultT -
All Implemented Interfaces:
Callable<ResultT>

public abstract class RoboAsyncTask<ResultT>
extends SafeAsyncTask<ResultT>

Allows injection to happen for tasks that execute in a background thread.


Nested Class Summary
protected static class RoboAsyncTask.Task<ResultT>
           
 
Field Summary
protected static com.google.inject.Provider<android.content.Context> contextProvider
           
protected static com.google.inject.Provider<ContextScope> scopeProvider
           
 
Fields inherited from class roboguice.util.SafeAsyncTask
DEFAULT_EXECUTOR, DEFAULT_POOL_SIZE, executor, future, handler, launchLocation
 
Constructor Summary
protected RoboAsyncTask()
           
protected RoboAsyncTask(Executor executor)
           
protected RoboAsyncTask(android.os.Handler handler)
           
protected RoboAsyncTask(android.os.Handler handler, Executor executor)
           
 
Method Summary
protected  RoboAsyncTask.Task<ResultT> newTask()
           
 
Methods inherited from class roboguice.util.SafeAsyncTask
cancel, execute, execute, executor, executor, future, handler, handler, onException, onFinally, onInterrupted, onPreExecute, onSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Field Detail

contextProvider

@Inject
protected static com.google.inject.Provider<android.content.Context> contextProvider

scopeProvider

@Inject
protected static com.google.inject.Provider<ContextScope> scopeProvider
Constructor Detail

RoboAsyncTask

protected RoboAsyncTask()

RoboAsyncTask

protected RoboAsyncTask(android.os.Handler handler)

RoboAsyncTask

protected RoboAsyncTask(android.os.Handler handler,
                        Executor executor)

RoboAsyncTask

protected RoboAsyncTask(Executor executor)
Method Detail

newTask

protected RoboAsyncTask.Task<ResultT> newTask()
Overrides:
newTask in class SafeAsyncTask<ResultT>


Copyright © 2011. All Rights Reserved.