Class Main


  • @Vetoed
    public class Main
    extends org.apache.camel.main.MainCommandLineSupport
    Camel CDI boot integration. Allows Camel and CDI to be booted up on the command line as a JVM process. See http://camel.apache.org/camel-boot.html.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.camel.main.MainCommandLineSupport

        org.apache.camel.main.MainCommandLineSupport.Option, org.apache.camel.main.MainCommandLineSupport.ParameterOption
    • Field Summary

      • Fields inherited from class org.apache.camel.main.MainCommandLineSupport

        options
      • Fields inherited from class org.apache.camel.main.MainSupport

        camelTemplate, DEFAULT_EXIT_CODE, exitCode, 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, standalone, wildcardProperties
      • Fields 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 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.camel.CamelContext createCamelContext()  
      protected void doStart()  
      protected void doStop()  
      protected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()  
      static Main getInstance()
      Returns the currently executing instance.
      protected void initCamelContext()  
      static void main​(String... args)  
      • Methods inherited from class org.apache.camel.main.MainCommandLineSupport

        addOption, initOptions, parseArguments, run, showOptions, showOptionsHeader
      • Methods inherited from class org.apache.camel.main.MainSupport

        afterStart, afterStop, beforeStart, beforeStop, completed, configureLifecycle, enableTrace, enableTraceStandby, getCamelTemplate, getCompleteTask, getDuration, getDurationHitExitCode, getDurationIdle, getDurationMaxMessages, getExitCode, getShutdownStrategy, internalBeforeStart, isTrace, registerMainBootstrap, 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, configureStartupRecorder, 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, 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, suspend
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • getInstance

        public static Main getInstance()
        Returns the currently executing instance.
        Returns:
        the current running instance
      • findOrCreateCamelTemplate

        protected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
        Specified by:
        findOrCreateCamelTemplate in class org.apache.camel.main.MainSupport
      • createCamelContext

        protected org.apache.camel.CamelContext createCamelContext()
        Specified by:
        createCamelContext in class org.apache.camel.main.MainSupport
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.main.MainSupport
        Throws:
        Exception
      • initCamelContext

        protected void initCamelContext()
                                 throws Exception
        Overrides:
        initCamelContext in class org.apache.camel.main.MainSupport
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.main.MainSupport
        Throws:
        Exception