|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExecutionStrategy
Strategy interface to permit the controlled execution of methods.
This interface is used to enable a Shell to execute methods in a consistent, system-wide
manner. A typical use case is to ensure user interface commands are not executed concurrently
when other background threads are performing certain operations.
| Method Summary | |
|---|---|
Object |
execute(ParseResult parseResult)
Executes the method indicated by the ParseResult. |
boolean |
isReadyForCommands()
Indicates commands are able to be presented. |
void |
terminate()
Indicates the execution runtime should be terminated. |
| Method Detail |
|---|
Object execute(ParseResult parseResult)
throws RuntimeException
ParseResult.
parseResult - that should be executed (never presented as null)
Shell implementation (may return null)
RuntimeException - which is handled by the Shell implementationboolean isReadyForCommands()
void terminate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||