net.sf.doolin.gui.action.task
Interface GUITaskExecutor<B,R>

Type Parameters:
B - Type of bean sent to the task
R - Type of bean returned by the task
All Known Implementing Classes:
BackgroundGUITaskExecutor, MonitoredGUITaskExecutor

public interface GUITaskExecutor<B,R>

Defines the executor for a GUITask.

Author:
Damien Coraboeuf

Method Summary
 void execute(ActionContext actionContext, B bean, GUITask<B,R> task)
          Executes a given task, starting from a given action context and with a given bean input.
 

Method Detail

execute

void execute(ActionContext actionContext,
             B bean,
             GUITask<B,R> task)
             throws TaskException
Executes a given task, starting from a given action context and with a given bean input.

Parameters:
actionContext - Action context to execute the task in
bean - Input for the task
task - Task to execute
Throws:
TaskException - If the task has returned an error


Copyright © 2011. All Rights Reserved.