|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spin.Evaluator spin.off.SpinOffEvaluator
public class SpinOffEvaluator
An evaluator for spin-off, i.e. all invocations are evaluated on another thread than the EDT while further events are dispatched.
Starter
,
DispatcherFactory
Constructor Summary | |
---|---|
SpinOffEvaluator()
Create an evaluator for spin-off using the default dispatcherFactory and starter. |
|
SpinOffEvaluator(DispatcherFactory dispatcherFactory)
Create an evaluator for spin-off using the default starter. |
|
SpinOffEvaluator(DispatcherFactory dispatcherFactory,
Starter starter)
Create an evaluator for spin-off. |
|
SpinOffEvaluator(Starter starter)
Create an evaluator for spin-off using the default dispatcherFactory. |
Method Summary | |
---|---|
void |
evaluate(Invocation invocation)
Spin the given invocation off the EDT. |
static DispatcherFactory |
getDefaultDispatcherFactory()
Get the default dispatcher factory. |
static Starter |
getDefaultStarter()
Get the default starter. |
static void |
setDefaultDispatcherFactory(DispatcherFactory dispatcherFactory)
Set the default dispatcher factory. |
static void |
setDefaultStarter(Starter starter)
Set the default starter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpinOffEvaluator()
setDefaultStarter(Starter)
,
setDefaultDispatcherFactory(DispatcherFactory)
public SpinOffEvaluator(DispatcherFactory dispatcherFactory)
dispatcherFactory
- factory of dispatcherssetDefaultStarter(Starter)
public SpinOffEvaluator(Starter starter)
starter
- startersetDefaultDispatcherFactory(DispatcherFactory)
public SpinOffEvaluator(DispatcherFactory dispatcherFactory, Starter starter)
dispatcherFactory
- factory of dispatchersstarter
- starterMethod Detail |
---|
public final void evaluate(Invocation invocation) throws java.lang.Throwable
evaluate
in class Evaluator
invocation
- invocation to spin-off
java.lang.Throwable
public static DispatcherFactory getDefaultDispatcherFactory()
public static void setDefaultDispatcherFactory(DispatcherFactory dispatcherFactory)
dispatcherFactory
- the factory of dispatchers to use as defaultpublic static Starter getDefaultStarter()
public static void setDefaultStarter(Starter starter)
starter
- the starter to use as default
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |