01: package dalma.impl;
02:
03: import dalma.Workflow;
04:
05: /**
06: * {@link Workflow} implementation that wraps a {@link Runnable}.
07: *
08: * @author Kohsuke Kawaguchi
09: */
10: final class RunnableWorkflowImpl extends Workflow {
11: private final Runnable runnable;
12:
13: public RunnableWorkflowImpl(Runnable runnable) {
14: this .runnable = runnable;
15: }
16:
17: public void run() {
18: runnable.run();
19: }
20:
21: private static final long serialVersionUID = 1L;
22: }
|