Class DefaultCommandDispatcher

java.lang.Object
org.jline.shell.impl.DefaultCommandDispatcher
All Implemented Interfaces:
AutoCloseable, CommandDispatcher

public class DefaultCommandDispatcher extends Object implements CommandDispatcher
Default implementation of CommandDispatcher that supports pipeline execution.

This dispatcher parses command lines using PipelineParser, resolves commands from registered CommandGroups, and executes pipeline stages with proper pipe/redirect/conditional handling.

When a JobManager is configured, the dispatcher supports:

  • Background execution via trailing &
  • Foreground job tracking
  • Built-in jobs, fg, bg commands

When an AliasManager is configured, the dispatcher expands aliases before pipeline parsing and automatically registers alias/unalias commands.

Since:
4.0
See Also: