java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.CommandService

public final class CommandService extends Object
A service that loads commands using SPI.

This class implements the singleton pattern to ensure a single instance of the command service is used throughout the application.

See Also:
  • Method Details

    • getInstance

      public static CommandService getInstance()
      Get the singleton instance of the function service.
      Returns:
      the service instance
    • getCommands

      @NonNull public List<ICommand> getCommands()
      Get the loaded commands.
      Returns:
      the list of loaded commands