roboguice.util
Class RoboThread
java.lang.Object
java.lang.Thread
roboguice.util.RoboThread
- All Implemented Interfaces:
- Runnable
public class RoboThread
- extends Thread
An extension to Thread
which propogates the current
Context to the background thread.
Current limitations: any parameters set in the RoboThread are
ignored other than Runnable. This means that priorities, groups,
names, etc. won't be honored. Yet.
Method Summary |
void |
start()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
contextProvider
@Inject
protected static com.google.inject.Provider<android.content.Context> contextProvider
scopeProvider
@Inject
protected static com.google.inject.Provider<ContextScope> scopeProvider
RoboThread
public RoboThread()
RoboThread
public RoboThread(Runnable runnable)
start
public void start()
- Overrides:
start
in class Thread
Copyright © 2011. All Rights Reserved.