net.sf.asyncobjects.util
Class RunDispatcher

java.lang.Object
  extended by net.sf.asyncobjects.util.RunDispatcher
All Implemented Interfaces:
ExplicitSharing
Direct Known Subclasses:
All, Any, Seq

public abstract class RunDispatcher
extends Object
implements ExplicitSharing

This is an utility class that is used for serveral control constructs. This class supports 16 actions from run1() to run16(). The class assumes that every control construct must implement at least two actions.

Author:
const

Field Summary
protected static Object NO_FURTHER_ACTIONS
          This is a special return value indicating that no action should be taken
 
Constructor Summary
RunDispatcher()
           
 
Method Summary
protected abstract  Object run1()
          First action
protected  Object run10()
          10th action
protected  Object run11()
          11th action
protected  Object run12()
          12th action
protected  Object run13()
          13th action
protected  Object run14()
          14th action
protected  Object run15()
          15th action
protected  Object run16()
          16th action
protected abstract  Object run2()
          Second action
protected  Object run3()
          3rd action
protected  Object run4()
          4th action
protected  Object run5()
          5th action
protected  Object run6()
          6th action
protected  Object run7()
          7th action
protected  Object run8()
          8th action
protected  Object run9()
          9th action
protected  Object runNext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_FURTHER_ACTIONS

protected static final Object NO_FURTHER_ACTIONS
This is a special return value indicating that no action should be taken

Constructor Detail

RunDispatcher

public RunDispatcher()
Method Detail

runNext

protected final Object runNext()
                        throws Throwable
Returns:
result of action execution or NO_FURTHER_ACTIONS inidcating that later actions will be ignored.
Throws:
Throwable - in case of problem with executing method

run1

protected abstract Object run1()
                        throws Throwable
First action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run2

protected abstract Object run2()
                        throws Throwable
Second action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run3

protected Object run3()
               throws Throwable
3rd action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run4

protected Object run4()
               throws Throwable
4th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run5

protected Object run5()
               throws Throwable
5th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run6

protected Object run6()
               throws Throwable
6th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run7

protected Object run7()
               throws Throwable
7th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run8

protected Object run8()
               throws Throwable
8th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run9

protected Object run9()
               throws Throwable
9th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run10

protected Object run10()
                throws Throwable
10th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run11

protected Object run11()
                throws Throwable
11th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run12

protected Object run12()
                throws Throwable
12th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run13

protected Object run13()
                throws Throwable
13th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run14

protected Object run14()
                throws Throwable
14th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run15

protected Object run15()
                throws Throwable
15th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method

run16

protected Object run16()
                throws Throwable
16th action

Returns:
an value or promise
Throws:
Throwable - in case of problem with executing method


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.