| java.lang.Object org.jasig.portal.utils.threading.BaseTask org.jasig.portal.utils.threading.RunnableTask
RunnableTask | public class RunnableTask extends BaseTask (Code) | | This class exists as a convenience to execute Runnables. Although it
may seem redundant, it is useful in that the superclass run() will
appropriately catch and store Exceptions, so that callers need not worry
about catching and handling them in their Runnable implementation.
author: Aaron Hamid (arh14 at cornell dot edu) |
Method Summary | |
public void | execute() Simply calls the run() on the runnable that this
RunnableTask was constructed with. |
RunnableTask | public RunnableTask(Runnable runnable)(Code) | | Constructs a RunnableTask with a Runnable object
Parameters: runnable - a runnable implementation |
execute | public void execute() throws Exception(Code) | | Simply calls the run() on the runnable that this
RunnableTask was constructed with. BaseTask
will catch and store any Exception the runnable,
and hence this method, throws.
|
|
|