T - the Configuration subclass which is loaded from the configuration filepublic class CheckCommand<T extends Configuration> extends ConfiguredCommand<T>
| Constructor | Description |
|---|---|
CheckCommand(Application<T> application) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.Class<T> |
getConfigurationClass() |
Returns the
Class of the configuration type. |
void |
onError(Cli cli,
net.sourceforge.argparse4j.inf.Namespace namespace,
java.lang.Throwable e) |
Method is called if there is an issue parsing configuration, setting up the
environment, or running the command itself.
|
protected void |
run(Bootstrap<T> bootstrap,
net.sourceforge.argparse4j.inf.Namespace namespace,
T configuration) |
Runs the command with the given
Bootstrap and Configuration. |
getDescription, getNameaddFileArgument, cleanup, cleanupAsynchronously, configure, runpublic CheckCommand(Application<T> application)
protected java.lang.Class<T> getConfigurationClass()
ConfiguredCommandClass of the configuration type.getConfigurationClass in class ConfiguredCommand<T extends Configuration>Class of the configuration typeprotected void run(Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration) throws java.lang.Exception
ConfiguredCommandBootstrap and Configuration.run in class ConfiguredCommand<T extends Configuration>bootstrap - the bootstrap bootstrapnamespace - the parsed command line namespaceconfiguration - the configuration objectjava.lang.Exception - if something goes wrongpublic void onError(Cli cli, net.sourceforge.argparse4j.inf.Namespace namespace, java.lang.Throwable e)
CommandCopyright © 2018. All rights reserved.