Package io.vertx.tp.plugin.shell
Class AbstractCommander
- java.lang.Object
-
- io.vertx.tp.plugin.shell.AbstractCommander
-
- All Implemented Interfaces:
Commander
- Direct Known Subclasses:
BackCommander,ConsoleCommander,HelpCommander,QuitCommander
public abstract class AbstractCommander extends Object implements Commander
- Author:
- Lang
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandAtomatomprotected Environmentenvironmentprotected io.vertx.core.VertxvertxRef
-
Constructor Summary
Constructors Constructor Description AbstractCommander()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commanderbind(io.vertx.core.Vertx vertx)Commanderbind(CommandAtom atom)Commanderbind(Environment environment)TermStatusexecute(CommandInput args)io.vertx.core.Future<TermStatus>executeAsync(CommandInput args)protected BooleaninBoolean(CommandInput input, String name)protected StringinFolder(CommandInput input, String name)protected StringinFolder(CommandInput input, String name, Function<String,String> processor)protected StringinFolder(String folderName)protected IntegerinInteger(CommandInput input, String name)protected <T> TinJson(CommandInput input, String name)protected StringinString(CommandInput input, String name)protected <T> TinValue(CommandInput input, String name, Class<T> clazzT)protected io.vertx.up.log.Annallogger()
-
-
-
Field Detail
-
atom
protected transient CommandAtom atom
-
vertxRef
protected transient io.vertx.core.Vertx vertxRef
-
environment
protected transient Environment environment
-
-
Method Detail
-
bind
public Commander bind(Environment environment)
-
bind
public Commander bind(CommandAtom atom)
-
executeAsync
public io.vertx.core.Future<TermStatus> executeAsync(CommandInput args)
- Specified by:
executeAsyncin interfaceCommander
-
execute
public TermStatus execute(CommandInput args)
-
logger
protected io.vertx.up.log.Annal logger()
-
inString
protected String inString(CommandInput input, String name)
-
inInteger
protected Integer inInteger(CommandInput input, String name)
-
inBoolean
protected Boolean inBoolean(CommandInput input, String name)
-
inFolder
protected String inFolder(CommandInput input, String name, Function<String,String> processor)
-
inFolder
protected String inFolder(CommandInput input, String name)
-
inJson
protected <T> T inJson(CommandInput input, String name)
-
inValue
protected <T> T inValue(CommandInput input, String name, Class<T> clazzT)
-
-