Interface CommandFactory<C extends Command>

All Known Implementing Classes:
DefaultCommandFactory

public interface CommandFactory<C extends Command>
SPI Interface to provide a new Launcher command. Implementors needs to provide two methods:
  1. define() - creates a CLI instance (so the model)
  2. create(CommandLine)} - creates a new command instance
Author:
Clement Escoffier invalid input: '<'[email protected]>
  • Method Summary

    Modifier and Type
    Method
    Description
    create(CommandLine evaluated)
     
    Creates a new CLI instance.
  • Method Details

    • create

      C create(CommandLine evaluated)
      Returns:
      a new instance of the command.
    • define

      CLI define()
      Creates a new CLI instance.
      Returns:
      the CLI.