spin.over
Class SpinOverEvaluator

java.lang.Object
  extended byspin.Evaluator
      extended byspin.over.SpinOverEvaluator

public class SpinOverEvaluator
extends Evaluator

An evaluator for spin-over, i.e. all invocations are evaluated on the EDT.


Constructor Summary
SpinOverEvaluator()
          Create an evaluator for spin-over using the default wait setting.
SpinOverEvaluator(boolean wait)
          Create an evaluator for spin-over.
 
Method Summary
 void evaluate(Invocation invocation)
          Spin the given invocation on the EDT.
static boolean getDefaultWait()
           
protected  void onInvokeLaterNonVoidReturnType(Invocation invocation)
           
static void setDefaultWait(boolean wait)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpinOverEvaluator

public SpinOverEvaluator()
Create an evaluator for spin-over using the default wait setting.

See Also:
setDefaultWait(boolean)

SpinOverEvaluator

public SpinOverEvaluator(boolean wait)
Create an evaluator for spin-over.

Parameters:
wait - should the invocation wait for the evaluation to complete
Method Detail

evaluate

public final void evaluate(Invocation invocation)
                    throws java.lang.Throwable
Spin the given invocation on the EDT.

Specified by:
evaluate in class Evaluator
Parameters:
invocation - invocation to spin-over
Throws:
java.lang.Throwable

onInvokeLaterNonVoidReturnType

protected void onInvokeLaterNonVoidReturnType(Invocation invocation)
                                       throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getDefaultWait

public static boolean getDefaultWait()

setDefaultWait

public static void setDefaultWait(boolean wait)