Package spin.over
Class SpinOverEvaluator
java.lang.Object
spin.Evaluator
spin.over.SpinOverEvaluator
An evaluator for spin-over, i.e. all invocations are evaluated on the EDT.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an evaluator for spin-over using the default wait setting.SpinOverEvaluator(boolean wait) Create an evaluator for spin-over. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidevaluate(Invocation invocation) Spin the given invocation on the EDT.static booleanShould evaluations wait for the invocations.protected voidonInvokeLaterNonVoidReturnType(Invocation invocation) Hook method to handle a non-void return type of a invoked method.static voidsetDefaultWait(boolean wait) Should evaluations wait for the invocations.
-
Constructor Details
-
SpinOverEvaluator
public SpinOverEvaluator()Create an evaluator for spin-over using the default wait setting.- See Also:
-
SpinOverEvaluator
public SpinOverEvaluator(boolean wait) Create an evaluator for spin-over.- Parameters:
wait- should the invocation wait for the evaluation to complete
-
-
Method Details
-
evaluate
Spin the given invocation on the EDT. -
onInvokeLaterNonVoidReturnType
Hook method to handle a non-void return type of a invoked method.- Parameters:
invocation- the invocation- Throws:
IllegalArgumentException
-
getDefaultWait
public static boolean getDefaultWait()Should evaluations wait for the invocations.- Returns:
trueif wait
-
setDefaultWait
public static void setDefaultWait(boolean wait) Should evaluations wait for the invocations.- Parameters:
wait-trueif wait
-