| Modifier and Type | Class and Description |
|---|---|
| public static class | VertxCommandLauncher.
Handles a command registration. |
| Modifier and Type | Field and Description |
|---|---|
| protected final Map | commandByName
the list of commands. |
| protected final List | lookups
the list of lookups. |
| protected Object | main
the |
| protected static List |
| Access | Constructor and Description |
|---|---|
| public | VertxCommandLauncher()
Creates a new |
| public | VertxCommandLauncher(Collection<CommandFactoryLookup>
the list of lookup lookups)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| protected String | |
| protected String | |
| public Collection | |
| protected String | |
| public Command | |
| private String | |
| protected String | |
| protected Command | Returns: the new instance,null if the command cannot be found.the command name name, CommandLine the command line commandLine)Creates a new |
| public PrintStream | |
| public static List | Returns: the process argument. Verticles can use this method to retrieve the arguments.
|
| protected static boolean | |
| protected static boolean | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public VertxCommandLauncher | |
| public VertxCommandLauncher | |
| public VertxCommandLauncher | |
| public static void | |
| public VertxCommandLauncher |
| commandByName | back to summary |
|---|---|
| protected final Map<String, VertxCommandLauncher. the list of commands. Sub-classes can decide to remove commands by removing entries from this map. | |
| lookups | back to summary |
|---|---|
| protected final List<CommandFactoryLookup> lookups the list of lookups. | |
| main | back to summary |
|---|---|
| protected Object main the | |
| PROCESS_ARGS | back to summary |
|---|---|
| protected static List<String> PROCESS_ARGS | |
| VertxCommandLauncher | back to summary |
|---|---|
| public VertxCommandLauncher() Creates a new | |
| VertxCommandLauncher | back to summary |
|---|---|
| public VertxCommandLauncher(Collection<CommandFactoryLookup> lookups) Creates a new
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(String[] args) Dispatches to the right command. This method is generally called from the
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(Object main, String[] args) Dispatches to the right command. This method is generally called from the | |
| execute | back to summary |
|---|---|
| public void execute(String command, String... cla) Executes the given command. | |
| getCommandFromManifest | back to summary |
|---|---|
| protected String getCommandFromManifest() | |
| getCommandLinePrefix | back to summary |
|---|---|
| protected String getCommandLinePrefix() | |
| getCommandNames | back to summary |
|---|---|
public Collection
| |
| getDefaultCommand | back to summary |
|---|---|
protected String getDefaultCommand()
| |
| getExistingCommandInstance | back to summary |
|---|---|
| public Command getExistingCommandInstance(String name) Gets an existing instance of command. | |
| getFromManifest | back to summary |
|---|---|
| private String getFromManifest(String key) | |
| getMainVerticle | back to summary |
|---|---|
protected String getMainVerticle()
| |
| getNewCommandInstance | back to summary |
|---|---|
| protected Command getNewCommandInstance(String name, CommandLine commandLine) Creates a new
| |
| getPrintStream | back to summary |
|---|---|
public PrintStream getPrintStream()
| |
| getProcessArguments | back to summary |
|---|---|
| public static List | |
| isAskingForHelp | back to summary |
|---|---|
| protected static boolean isAskingForHelp(String command) | |
| isAskingForVersion | back to summary |
|---|---|
| protected static boolean isAskingForVersion(String command) | |
| load | back to summary |
|---|---|
| protected void load() Loads the command. This method is | |
| printCommandNotFound | back to summary |
|---|---|
| protected void printCommandNotFound(String command) | |
| printCommandUsage | back to summary |
|---|---|
| protected void printCommandUsage(CLI cli) | |
| printGenericExecutionError | back to summary |
|---|---|
| protected void printGenericExecutionError(CLI cli, CLIException e) | |
| printGlobalUsage | back to summary |
|---|---|
| protected void printGlobalUsage() | |
| printSpecificException | back to summary |
|---|---|
| protected void printSpecificException(CLI cli, Exception e) | |
| register | back to summary |
|---|---|
| public VertxCommandLauncher register(CommandFactory<C extends Command> factory) | |
| register | back to summary |
|---|---|
| public VertxCommandLauncher register(Class<? extends Command> clazz)
Deprecated
| |
| register | back to summary |
|---|---|
public VertxCommandLauncher register(Class<? extends Command> clazz, Supplier<? extends Command> supplier)
| |
| resetProcessArguments | back to summary |
|---|---|
| public static void resetProcessArguments() For testing purpose only - reset the process arguments | |
| unregister | back to summary |
|---|---|
| public VertxCommandLauncher unregister(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| public final CLI | |
| private List | |
| public final CommandFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Command | |
| public List |
| cli | back to summary |
|---|---|
| public final CLI cli | |
| commands | back to summary |
|---|---|
| private List<Command> commands | |
| factory | back to summary |
|---|---|
| public final CommandFactory<C extends Command> factory | |
| CommandRegistration | back to summary |
|---|---|
| public CommandRegistration(CommandFactory<C extends Command> factory) | |
| CommandRegistration | back to summary |
|---|---|
| public CommandRegistration(CommandFactory<C extends Command> factory, CLI cli) | |
| addCommand | back to summary |
|---|---|
| public void addCommand(Command command) | |
| getCommand | back to summary |
|---|---|
| public Command getCommand() | |
| getCommands | back to summary |
|---|---|
| public List | |