of-commons-concurrency/src/main/java/org/openforis/concurrency/Job.java
/**
	 * Throws IllegalStateException if invoked after run() is called
	 * 
	 * @param task
	 */
Throws IllegalStateException if invoked after run() is called

@param task
Throws IllegalStateException if invoked after run () is called @param task
protected <T extends Worker> void addTask(T task) {
		if ( !isPending() ) {
			throw new IllegalStateException("Cannot add tasks to a job once started");
		}
		tasks.add(task);
	}
protected < T extends Worker > void addTask ( T task ) { if ( ! isPending ( ) ) { throw new IllegalStateException ( "Cannot add tasks to a job once started" ) ; } tasks . add ( task ) ; }
Throws IllegalStateException if invoked after run() is called
Throws IllegalStateException if invoked after run () is called