public abstract class MainCommandLineSupport extends MainSupport
| Modifier and Type | Class and Description |
|---|---|
class |
MainCommandLineSupport.Option |
class |
MainCommandLineSupport.ParameterOption |
| Modifier and Type | Field and Description |
|---|---|
protected List<MainCommandLineSupport.Option> |
options |
camelTemplate, DEFAULT_EXIT_CODE, exitCode, LOG, shutdownStrategy, UNINITIALIZED_EXIT_CODEcamelContext, DEFAULT_PROPERTY_PLACEHOLDER_LOCATION, defaultPropertyPlaceholderLocation, INITIAL_PROPERTIES_LOCATION, initialProperties, listeners, mainConfigurationProperties, OVERRIDE_PROPERTIES_LOCATION, overrideProperties, PROPERTY_PLACEHOLDER_LOCATION, propertyPlaceholderLocations, routesCollector, wildcardProperties| Constructor and Description |
|---|
MainCommandLineSupport() |
MainCommandLineSupport(Class... configurationClasses) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(MainCommandLineSupport.Option option) |
protected void |
initOptions() |
void |
parseArguments(String[] arguments)
Parses the command line arguments.
|
int |
run(String[] args)
Parses the command line arguments then runs the program.
|
void |
showOptions()
Displays the command line options.
|
void |
showOptionsHeader()
Displays the header message for the command line options.
|
afterStart, afterStop, beforeStart, beforeStop, completed, configureLifecycle, createCamelContext, doStart, doStop, enableTrace, findOrCreateCamelTemplate, getCamelTemplate, getCompleteTask, getDuration, getDurationHitExitCode, getDurationIdle, getDurationMaxMessages, getExitCode, getShutdownStrategy, initCamelContext, isTrace, run, setDuration, setDurationHitExitCode, setDurationIdle, setDurationMaxMessages, setShutdownStrategy, waitUntilCompletedaddInitialProperty, addMainListener, addOverrideProperty, addProperty, autoConfigurationFailFast, autoConfigurationFromProperties, autoConfigurationMainConfiguration, autoConfigurationPropertiesComponent, autoconfigure, autowireWildcardProperties, configure, configurePropertiesService, configureRoutes, configureStartupRecorder, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, getCamelContext, getDefaultPropertyPlaceholderLocation, getInitialProperties, getOverrideProperties, getPropertyPlaceholderLocations, getRoutesCollector, isAutoConfigurationEnabled, loadConfigurations, postProcessCamelContext, removeMainListener, setAutoConfigurationEnabled, setDefaultPropertyPlaceholderLocation, setInitialProperties, setInitialProperties, setOverrideProperties, setOverrideProperties, setPropertyPlaceholderLocations, setRoutesCollectorbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected final List<MainCommandLineSupport.Option> options
public MainCommandLineSupport(Class... configurationClasses)
public MainCommandLineSupport()
protected void initOptions()
public void showOptions()
public void parseArguments(String[] arguments)
public void addOption(MainCommandLineSupport.Option option)
public int run(String[] args) throws Exception
Exceptionpublic void showOptionsHeader()
Apache Camel