Interface CommandBundle

All Superinterfaces:
Map<String,SimpleCommand>, SortedMap<String,SimpleCommand>
All Known Implementing Classes:
Bundle, Bundle, TreeMapBundle

public interface CommandBundle extends SortedMap<String,SimpleCommand>
A collection of SimpleCommands keyed by name.
  • Method Details

    • getDescription

      String getDescription()
      Get a one line description of this bundle.
      Returns:
      bundle description
    • scanAndGenerate

      static Stream<CommandBundle> scanAndGenerate()
      Scan the classpath for CommandBundle implementations, instantiate, and return them.

      This method uses the current thread's context class loader.

      Returns:
      stream of auto-generated CommandBundle's
      See Also:
    • scanAndGenerate

      static Stream<CommandBundle> scanAndGenerate(ClassLoader loader)
      Scan the classpath for CommandBundle implementations and instantiate and return them.
      Parameters:
      loader - class loader, or null for the system class loader
      Returns:
      stream of auto-generated CommandBundle's
      See Also: