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 and Description
    `CLIConfigurator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and 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)` Injects the value in the annotated setter methods (`Option` and `Argument`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CLIConfigurator

          public CLIConfigurator()

  - ### 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

      Injects the value in the annotated setter methods (`Option` and `Argument`.
      Parameters:
        `cli` - the cli
        `object` - the object to be injected
      Throws:
        `CLIException` - if an injection issue occurred.

Copyright © 2015. All rights reserved.