public abstract static class AbstractApplicationCommand.ApplicationOptionHandler<R>
extends org.springframework.boot.cli.command.options.OptionHandler
Constructor and Description |
---|
AbstractApplicationCommand.ApplicationOptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleApplicationRun(ClientApplicationRunner<R> app)
Handles run of
ClientApplicationRunner . |
protected void |
handleApplicationRun(ClientApplicationRunner<R> app,
java.lang.String... args)
Handles run of
ClientApplicationRunner . |
protected void |
handleOutput(java.lang.String output)
Utility method to handle output for the command.
|
protected boolean |
isFlagOn(joptsimple.OptionSet options,
joptsimple.OptionSpec<java.lang.Boolean> option)
Utility method to check if boolean flag is set.
|
protected org.springframework.boot.cli.command.status.ExitStatus |
run(joptsimple.OptionSet options) |
protected abstract void |
runApplication(joptsimple.OptionSet options)
Run the application.
|
protected void |
verifyOptionSet(joptsimple.OptionSet options)
Verify option before application is executed.
|
public AbstractApplicationCommand.ApplicationOptionHandler()
protected final org.springframework.boot.cli.command.status.ExitStatus run(joptsimple.OptionSet options) throws java.lang.Exception
run
in class org.springframework.boot.cli.command.options.OptionHandler
java.lang.Exception
protected void verifyOptionSet(joptsimple.OptionSet options) throws java.lang.Exception
runApplication(OptionSet)
.options
- the options setjava.lang.Exception
- if error occurred during the processingprotected abstract void runApplication(joptsimple.OptionSet options) throws java.lang.Exception
options
- the options setjava.lang.Exception
- if error occurred during the processingprotected boolean isFlagOn(joptsimple.OptionSet options, joptsimple.OptionSpec<java.lang.Boolean> option)
options
- the options setoption
- the boolean option specprotected void handleOutput(java.lang.String output)
Log
.output
- protected void handleApplicationRun(ClientApplicationRunner<R> app)
ClientApplicationRunner
.app
- the appprotected void handleApplicationRun(ClientApplicationRunner<R> app, java.lang.String... args)
ClientApplicationRunner
.app
- the appargs
- the args