public abstract class AbstractCommander extends Object implements Commander
| Modifier and Type | Field and Description |
|---|---|
protected CommandAtom |
atom |
protected Environment |
environment |
protected io.vertx.core.Vertx |
vertxRef |
| Constructor and Description |
|---|
AbstractCommander() |
| Modifier and Type | Method and Description |
|---|---|
Commander |
bind(CommandAtom atom) |
Commander |
bind(Environment environment) |
Commander |
bind(io.vertx.core.Vertx vertx) |
TermStatus |
execute(CommandInput args) |
io.vertx.core.Future<TermStatus> |
executeAsync(CommandInput args) |
protected Boolean |
inBoolean(CommandInput input,
String name) |
protected String |
inFolder(CommandInput input,
String name) |
protected String |
inFolder(CommandInput input,
String name,
Function<String,String> processor) |
protected String |
inFolder(String folderName) |
protected Integer |
inInteger(CommandInput input,
String name) |
protected <T> T |
inJson(CommandInput input,
String name) |
protected String |
inString(CommandInput input,
String name) |
protected <T> T |
inValue(CommandInput input,
String name,
Class<T> clazzT) |
protected io.vertx.up.log.Annal |
logger() |
protected transient CommandAtom atom
protected transient io.vertx.core.Vertx vertxRef
protected transient Environment environment
public Commander bind(Environment environment)
public Commander bind(CommandAtom atom)
public io.vertx.core.Future<TermStatus> executeAsync(CommandInput args)
executeAsync in interface Commanderpublic TermStatus execute(CommandInput args)
protected io.vertx.up.log.Annal logger()
protected String inString(CommandInput input, String name)
protected Integer inInteger(CommandInput input, String name)
protected Boolean inBoolean(CommandInput input, String name)
protected String inFolder(CommandInput input, String name, Function<String,String> processor)
protected String inFolder(CommandInput input, String name)
protected <T> T inJson(CommandInput input, String name)
protected <T> T inValue(CommandInput input, String name, Class<T> clazzT)
Copyright © 2020. All rights reserved.