org.xnap.commons.io
Class JobExecutor

java.lang.Object
  extended by org.xnap.commons.io.JobExecutor

public class JobExecutor
extends Object

Provides static helper methods for executing Job objects.

Author:
Steffen Pingel

Constructor Summary
JobExecutor()
           
 
Method Summary
static
<T> Callable<T>
callable(Job<T> job, ProgressMonitor monitor)
           
static
<T> T
run(JDialog owner, String title, Job<T> job)
           
static
<T> T
run(JFrame owner, String title, Job<T> job)
           
static
<T> T
run(String title, Job<T> job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobExecutor

public JobExecutor()
Method Detail

callable

public static <T> Callable<T> callable(Job<T> job,
                                       ProgressMonitor monitor)

run

public static <T> T run(String title,
                        Job<T> job)
             throws Exception
Throws:
Exception

run

public static <T> T run(JDialog owner,
                        String title,
                        Job<T> job)
             throws Exception
Throws:
Exception

run

public static <T> T run(JFrame owner,
                        String title,
                        Job<T> job)
             throws Exception
Throws:
Exception


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.