vertx / io.vertx.core.spi.launcher / DefaultCommandFactory

DefaultCommandFactory

open class DefaultCommandFactory<C : Command> : CommandFactory<C>

Default implementation of CommandFactory. This implementation defines the CLI from the given Command implementation (by reading the annotation). Then, Command instance are created by calling an empty constructor on the given Command implementation.

Author
Clement Escoffier

Constructors

<init>

DefaultCommandFactory(clazz: Class<C>)

Creates a new CommandFactory.

Functions

create

open fun create(cl: CommandLine): C

define

open fun define(): CLI