public class DefaultCommandFactory<C extends Command> extends Object implements CommandFactory<C>
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.| Constructor and Description | 
|---|
DefaultCommandFactory(Class<C> clazz)
Deprecated. 
 
Please use  
DefaultCommandFactory(Class, Supplier) | 
DefaultCommandFactory(Class<C> clazz,
                     java.util.function.Supplier<C> supplier)
Creates a new  
CommandFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
C | 
create(CommandLine cl)  | 
CLI | 
define()
Creates a new  
CLI instance. | 
@Deprecated public DefaultCommandFactory(Class<C> clazz)
DefaultCommandFactory(Class, Supplier)CommandFactory.clazz - the Command implementationpublic DefaultCommandFactory(Class<C> clazz, java.util.function.Supplier<C> supplier)
CommandFactory.public C create(CommandLine cl)
create in interface CommandFactory<C extends Command>public CLI define()
CommandFactoryCLI instance.define in interface CommandFactory<C extends Command>CLI instance by reading the annotation.Copyright © 2020 Eclipse. All rights reserved.