net.sf.doolin.gui.action.task
Class AbstractGUITask<B,R>
java.lang.Object
net.sf.doolin.gui.action.task.AbstractGUITask<B,R>
- Type Parameters:
B - Type of bean sent to the taskR - Type of bean returned by the task
- All Implemented Interfaces:
- GUITask<B,R>
- Direct Known Subclasses:
- MethodGUITask
public abstract class AbstractGUITask<B,R>
- extends Object
- implements GUITask<B,R>
An abstract implementation for GUITask that provides a default
support for the management of the exceptions.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGUITask
public AbstractGUITask()
doOnException
public void doOnException(ActionContext actionContext,
B bean,
Throwable th)
- If
delegateException property is true, a
RuntimeException is thrown. Otherwise, the
actionContext displays the error.
- Specified by:
doOnException in interface GUITask<B,R>
- Parameters:
actionContext - Initial action contextbean - Bean sent to the taskth - Error thrown by the task- See Also:
InfoService#error(ActionContext, Throwable, String, Object...)
isDelegateException
public boolean isDelegateException()
- Checks if exception must be delegated to the caller.
- Returns:
true if exception must be delegated to the caller.
setDelegateException
public void setDelegateException(boolean delegateException)
- Sets if exception must be delegated to the caller.
- Parameters:
delegateException - true if exception must be delegated to the
caller.
Copyright © 2011. All Rights Reserved.