Runner
Runner executes action trees and discovered factories.
Create a runner
var runner = Runner.defaultRunner();
var custom = Runner.builder()
.configuration(configuration)
.listener(listener)
.build();
Builders are reusable; calling build() produces a new runner from the builder's current configuration.
Run methods
run(Action)returnsResult.run(Selector)returnsOptional<Result>.runAndReturnExitCode(Action)andrunAndReturnExitCode(Selector)return0or1.runAndExit(...)terminates the JVM with the derived code.run()discovers factories from the classpath and returns an exit code.
Runner.main(String[]) calls Runner.builder().build().run() and exits with the returned code.