Package org.apache.camel.quarkus.main
Class CamelMain
- 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.quarkus.main.CamelMain
-
- All Implemented Interfaces:
org.apache.camel.spi.HasCamelContext
public final class CamelMain extends org.apache.camel.main.MainCommandLineSupport implements org.apache.camel.spi.HasCamelContext
-
-
Field Summary
-
Fields inherited from class org.apache.camel.main.MainSupport
camelTemplate, DEFAULT_EXIT_CODE, exitCode, LOG, shutdownStrategy, UNINITIALIZED_EXIT_CODE
-
Fields inherited from class org.apache.camel.main.BaseMainSupport
camelContext, DEFAULT_PROPERTY_PLACEHOLDER_LOCATION, defaultPropertyPlaceholderLocation, INITIAL_PROPERTIES_LOCATION, initialProperties, listeners, mainConfigurationProperties, OVERRIDE_PROPERTIES_LOCATION, overrideProperties, PROPERTY_PLACEHOLDER_LOCATION, propertyPlaceholderLocations, routesCollector, wildcardProperties
-
-
Constructor Summary
Constructors Constructor Description CamelMain(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.camel.CamelContextcreateCamelContext()protected voiddoInit()protected voiddoStart()protected voiddoStop()protected org.apache.camel.ProducerTemplatefindOrCreateCamelTemplate()(package private) org.apache.camel.main.MainConfigurationPropertiesgetMainConfigurationProperties()(package private) Collection<org.apache.camel.main.MainListener>getMainListeners()protected voidinitCamelContext()protected voidloadRouteBuilders(org.apache.camel.CamelContext camelContext)voidrun(String[] args)voidrunEngine()Start the engine if not done already and wait until completed, or the JVM terminates.voidstartEngine()Start the engine.-
Methods inherited from class org.apache.camel.main.MainCommandLineSupport
addOption, initOptions, parseArguments, showOptions, showOptionsHeader
-
Methods inherited from class org.apache.camel.main.MainSupport
afterStart, afterStop, beforeStart, beforeStop, completed, configureLifecycle, enableTrace, getCamelTemplate, getCompleteTask, getDuration, getDurationHitExitCode, getDurationIdle, getDurationMaxMessages, getExitCode, getShutdownStrategy, isTrace, run, setDuration, setDurationHitExitCode, setDurationIdle, setDurationMaxMessages, setShutdownStrategy, waitUntilCompleted
-
Methods inherited from class org.apache.camel.main.BaseMainSupport
addInitialProperty, addMainListener, addOverrideProperty, addProperty, autoConfigurationFailFast, autoConfigurationFromProperties, autoConfigurationMainConfiguration, autoConfigurationPropertiesComponent, autoconfigure, autowireWildcardProperties, configure, configurePropertiesService, configureRoutes, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, getCamelContext, getDefaultPropertyPlaceholderLocation, getInitialProperties, getOverrideProperties, getPropertyPlaceholderLocations, getRoutesCollector, isAutoConfigurationEnabled, loadConfigurations, postProcessCamelContext, removeMainListener, setAutoConfigurationEnabled, setDefaultPropertyPlaceholderLocation, setInitialProperties, setInitialProperties, setOverrideProperties, setOverrideProperties, setPropertyPlaceholderLocations, setRoutesCollector
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, 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, suspend
-
-
-
-
Method Detail
-
loadRouteBuilders
protected void loadRouteBuilders(org.apache.camel.CamelContext camelContext) throws Exception- Overrides:
loadRouteBuildersin classorg.apache.camel.main.BaseMainSupport- Throws:
Exception
-
doInit
protected void doInit() throws Exception- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.main.MainSupport- Throws:
Exception
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classorg.apache.camel.main.MainSupport- Throws:
Exception
-
findOrCreateCamelTemplate
protected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
- Specified by:
findOrCreateCamelTemplatein classorg.apache.camel.main.MainSupport
-
initCamelContext
protected void initCamelContext() throws Exception- Overrides:
initCamelContextin classorg.apache.camel.main.MainSupport- Throws:
Exception
-
createCamelContext
protected org.apache.camel.CamelContext createCamelContext()
- Specified by:
createCamelContextin classorg.apache.camel.main.MainSupport
-
getMainListeners
Collection<org.apache.camel.main.MainListener> getMainListeners()
-
getMainConfigurationProperties
org.apache.camel.main.MainConfigurationProperties getMainConfigurationProperties()
-
runEngine
public void runEngine() throws ExceptionStart the engine if not done already and wait until completed, or the JVM terminates.- Throws:
Exception
-
-