public interface ExecutionProcessor extends CommandMarker
| Modifier and Type | Method and Description |
|---|---|
void |
afterReturningInvocation(ParseResult invocationContext,
Object result)
Method called after successfully invoking the target command (described by
ParseResult). |
void |
afterThrowingInvocation(ParseResult invocationContext,
Throwable thrown)
Method called after invoking the target command (described by
ParseResult) had thrown an exception . |
ParseResult |
beforeInvocation(ParseResult invocationContext)
Method called before invoking the target command (described by
ParseResult). |
ParseResult beforeInvocation(ParseResult invocationContext)
ParseResult).
Additionally, for advanced cases, the parse result itself effectively changing the invocation
calling site.invocationContext - target command contextvoid afterReturningInvocation(ParseResult invocationContext, Object result)
ParseResult).invocationContext - target command contextresult - the invocation resultvoid afterThrowingInvocation(ParseResult invocationContext, Throwable thrown)
ParseResult) had thrown an exception .invocationContext - target command contextthrown - the thrown object