@Component
public abstract class ShellCommands
extends java.lang.Object
implements org.springframework.shell.core.ExecutionProcessor
| Modifier and Type | Field and Description |
|---|---|
protected ShellSession |
session_ |
| Modifier | Constructor and Description |
|---|---|
protected |
ShellCommands() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext,
java.lang.Object result)
Method called after successfully invoking the target command (described by
ParseResult). |
void |
afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext,
java.lang.Throwable thrown)
Method called after invoking the target command (described by
ParseResult) had thrown an exception . |
org.springframework.shell.event.ParseResult |
beforeInvocation(org.springframework.shell.event.ParseResult invocationContext)
Method called before invoking the target command (described by
ParseResult). |
protected org.ojai.json.JsonOptions |
getCmdJsonOptions(java.lang.String withTags,
java.lang.String pretty) |
protected ShellSession session_
protected ShellCommands()
throws java.io.IOException
java.io.IOExceptionprotected org.ojai.json.JsonOptions getCmdJsonOptions(java.lang.String withTags,
java.lang.String pretty)
public org.springframework.shell.event.ParseResult beforeInvocation(org.springframework.shell.event.ParseResult invocationContext)
ParseResult).
Additionally, for advanced cases, the parse result itself effectively changing the invocation
calling site.beforeInvocation in interface org.springframework.shell.core.ExecutionProcessorinvocationContext - target command contextpublic void afterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext,
java.lang.Object result)
ParseResult).afterReturningInvocation in interface org.springframework.shell.core.ExecutionProcessorinvocationContext - target command contextresult - the invocation resultpublic void afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext,
java.lang.Throwable thrown)
ParseResult) had thrown an exception .afterThrowingInvocation in interface org.springframework.shell.core.ExecutionProcessorinvocationContext - target command contextthrown - the thrown object