@Component public abstract class ShellCommands extends 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,
Object result)
Method called after successfully invoking the target command (described by
ParseResult). |
void |
afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext,
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(String withTags,
String pretty) |
protected ShellSession session_
protected ShellCommands()
throws IOException
IOExceptionprotected org.ojai.json.JsonOptions getCmdJsonOptions(String withTags, 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,
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,
Throwable thrown)
ParseResult) had thrown an exception .afterThrowingInvocation in interface org.springframework.shell.core.ExecutionProcessorinvocationContext - target command contextthrown - the thrown objectCopyright © 2018 Mapr Technologies, Inc.. All rights reserved.