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
DefaultCommandFactory(clazz: Class<C>)
Creates a new CommandFactory. |
open fun create(cl: CommandLine): C |
|
open fun define(): CLI |