Interface CommandCatalog

All Known Implementing Classes:
CommandCatalogOverLocator, CommandCatalogUnion, CommandRegistry

public interface CommandCatalog
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.collect.Multimap<ExecSite, CommandBinding>
    get(String virtualCommandName)
    Return all known locations for a command.
    get(String virtualCommandName, ExecSite execSite)
    Find the best matching command for the given exec site.
    default Set<ExecSite>
    getExecSites(String virtualCommandName)
    Convenience method to get only a command's set of exec sites.
  • Method Details

    • get

      com.google.common.collect.Multimap<ExecSite, CommandBinding> get(String virtualCommandName)
      Return all known locations for a command. Candidate locations where the command is unavailable (e.g. on the host) must have been filtered out.
    • get

      default Optional<Set<CommandBinding>> get(String virtualCommandName, ExecSite execSite)
      Find the best matching command for the given exec site.
    • getExecSites

      default Set<ExecSite> getExecSites(String virtualCommandName)
      Convenience method to get only a command's set of exec sites.