Package io.vertx.core.cli.annotations
Class CLIConfigurator
- java.lang.Object
-
- io.vertx.core.cli.annotations.CLIConfigurator
-
public class CLIConfigurator extends Object
Class responsible for defining CLI using annotations and injecting values extracted by the parser.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description CLIConfigurator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLI
define(Class<?> clazz)
Creates an instance of the given class, and extracts the metadata from the given class.static void
inject(CommandLine cli, Object object)
-
-
-
Method Detail
-
define
public static CLI define(Class<?> clazz)
Creates an instance of the given class, and extracts the metadata from the given class.- Parameters:
clazz
- the CLI class- Returns:
- the defined CLI.
-
inject
public static void inject(CommandLine cli, Object object) throws CLIException
- Parameters:
cli
- the cliobject
- the object to be injected- Throws:
CLIException
- if an injection issue occurred.
-
-