Class Main
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.main.BaseMainSupport
org.apache.camel.main.MainSupport
org.apache.camel.main.MainCommandLineSupport
org.apache.camel.main.Main
org.apache.camel.main.fatjar.Main
A Main class for booting up Camel in standalone mode packaged as far-jar using the camel-repackager-maven-plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class MainCommandLineSupport
MainCommandLineSupport.Option, MainCommandLineSupport.ParameterOption -
Field Summary
Fields inherited from class MainCommandLineSupport
argumentProperties, optionsFields inherited from class MainSupport
camelTemplate, DEFAULT_EXIT_CODE, exitCode, LOG, shutdownStrategy, UNINITIALIZED_EXIT_CODEFields inherited from class BaseMainSupport
camelContext, defaultPropertyPlaceholderLocation, helper, initialProperties, listeners, mainConfigurationProperties, overrideProperties, propertyPlaceholderLocations, routesCollector, standalone, wildcardPropertiesFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Main
bind, doInit, doStart, doStop, findOrCreateCamelTemplate, getInstance, lookup, lookup, lookupByType, mainMethods inherited from class MainCommandLineSupport
addArgumentProperty, addInitialOptions, addOption, configurePropertiesService, getArgumentProperties, initOptions, parseArguments, run, setArgumentProperties, setArgumentProperties, showOptions, showOptionsHeaderMethods inherited from class MainSupport
afterStart, afterStop, autoconfigure, beforeStart, beforeStop, completed, configureLifecycle, enableTrace, enableTraceStandby, getAppName, getCamelTemplate, getCompleteTask, getExitCode, getShutdownStrategy, initCamelContext, internalBeforeStart, isTrace, registerMainBootstrap, run, setAppName, setShutdownStrategy, waitUntilCompletedMethods inherited from class BaseMainSupport
addInitialProperty, addMainListener, addOverrideProperty, addProperty, autoConfigurationFailFast, autoConfigurationFromProperties, autoConfigurationFromReloadedProperties, autoConfigurationMainConfiguration, autoConfigurationPropertiesComponent, autoConfigurationSingleOption, autoConfigurationStartupConditions, autowireWildcardProperties, configure, configureMainListener, configurePackageScan, configureRoutes, configureRoutesLoader, configureStartupRecorder, createLifecycleStrategy, detectCamelDebugJar, detectResilience4jMicrometer, doAutoConfigurationFromProperties, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, doConfigureVaultFromMainConfiguration, doInitFileConfigurations, getCamelContext, getDefaultPropertyPlaceholderLocation, getInitialProperties, getMainListeners, getOverrideProperties, getPropertyPlaceholderLocations, getRoutesCollector, loadConfigurations, loadCustomBeans, modelineRoutes, postProcessCamelContext, postProcessCamelRegistry, preProcessCamelRegistry, removeMainListener, setDefaultPropertyPlaceholderLocation, setInitialProperties, setInitialProperties, setOverrideProperties, setOverrideProperties, setPropertyPlaceholderLocations, setRoutesCollectorMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Constructor Details
-
Main
public Main()Camel main application It is recommended to useMain(Class)to specify the main class. -
Main
-
Main
@SafeVarargs public Main(Class<?> mainClass, Class<? extends org.apache.camel.CamelConfiguration>... configurationClasses) Camel main application- Parameters:
mainClass- the main classconfigurationClasses- additional camel configuration classes
-
-
Method Details
-
createCamelContext
protected org.apache.camel.CamelContext createCamelContext()- Overrides:
createCamelContextin classMain
-