public interface ExecutionProcessor extends CommandMarker
Modifier and Type | Method and Description |
---|---|
void |
afterReturningInvocation(ParseResult invocationContext,
java.lang.Object result)
Method called after successfully invoking the target command (described by
ParseResult ). |
void |
afterThrowingInvocation(ParseResult invocationContext,
java.lang.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, java.lang.Object result)
ParseResult
).invocationContext
- target command contextresult
- the invocation resultvoid afterThrowingInvocation(ParseResult invocationContext, java.lang.Throwable thrown)
ParseResult
) had thrown an exception .invocationContext
- target command contextthrown
- the thrown object