|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.shell.core.SimpleExecutionStrategy
public class SimpleExecutionStrategy
Simple execution strategy for invoking a target method.
Supports pre/post processing to allow CommandMarkers for aop-like behavior (
typically used for controlling stateful objects).
| Constructor Summary | |
|---|---|
SimpleExecutionStrategy()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleExecutionStrategy()
| Method Detail |
|---|
public Object execute(ParseResult parseResult)
throws RuntimeException
ExecutionStrategyParseResult.
execute in interface ExecutionStrategyparseResult - that should be executed (never presented as null)
Shell implementation (may return null)
RuntimeException - which is handled by the Shell implementationpublic boolean isReadyForCommands()
ExecutionStrategy
isReadyForCommands in interface ExecutionStrategypublic void terminate()
ExecutionStrategy
terminate in interface ExecutionStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||