- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.boot.CommandLineRunner, org.springframework.context.ApplicationContextAware
public class ShellCommandLineRunner
extends Object
implements org.springframework.boot.CommandLineRunner, org.springframework.context.ApplicationContextAware
This does basically the same thing as Bootstrap in Spring Shell,
but using Spring Boot's CommandLineRunner as a callback hook for initialization, instead
of squatting on the application's one main(String[] args) method.
This configuration also uses Spring Boot to parse command line arguments instead of
SimpleShellCommandLineOptions.parseCommandLine(String[]). This means that
command line arguments use a different syntax than in Spring Shell. Key value pairs for arguments need to be
passed with an equal sign as the separator rather than a space.
- Author:
- Josh Long, Mark Pollack