@Documented
@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface ThreadingAware
Annotates a class.
When annotating a class it indicates that it will be able to execute code using the Application's threading facilities.
The following methods will be added to classes annotated with @ThreadingAwarepublic boolean isUIThread()
public void runInsideUIAsync(Runnable runnable)
public void runInsideUISync(Runnable runnable)
public void runOutsideUI(Runnable runnable)
public void runOutsideUIAsync(Runnable runnable)
public <R> Future<R> runFuture(ExecutorService executorService, Callable<R> callable)
public <R> Future<R> runFuture(Callable<R> callable)
public <R> R runInsideUISync(Callable<R> callable)
public <R> R runOutsideUI(Callable<R> callable)
ThreadingHandler