org.apache.camel
Class Main
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.MainSupport
org.apache.camel.Main
- All Implemented Interfaces:
- Service, ShutdownableService
public class Main
- extends MainSupport
A command line tool for booting up a CamelContext
- Version:
Fields inherited from class org.apache.camel.impl.MainSupport |
aggregateDot, camelContexts, camelTemplate, completed, dotOutputDir, duration, latch, LOG, options, routeBuilders, routesOutputFile, timeUnit, trace |
Constructor Summary |
Main()
|
Methods inherited from class org.apache.camel.impl.MainSupport |
addOption, addRouteBuilder, afterStart, beforeStop, completed, enableHangupSupport, enableTrace, generateDot, getCamelContexts, getCamelTemplate, getDotOutputDir, getDuration, getRouteBuilders, getRouteDefinitions, getRoutesOutputFile, getTimeUnit, isAggregateDot, isTrace, outputRoutesToFile, parseArguments, postProcessCamelContext, postProcessContext, run, run, setAggregateDot, setDotOutputDir, setDuration, setRouteBuilders, setRoutesOutputFile, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static Main instance
Main
public Main()
main
public static void main(java.lang.String... args)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInstance
public static Main getInstance()
- Returns the currently executing main
- Returns:
- the current running instance
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart
in class MainSupport
- Throws:
java.lang.Exception
doStop
protected void doStop()
throws java.lang.Exception
- Overrides:
doStop
in class MainSupport
- Throws:
java.lang.Exception
findOrCreateCamelTemplate
protected ProducerTemplate findOrCreateCamelTemplate()
- Specified by:
findOrCreateCamelTemplate
in class MainSupport
getCamelContextMap
protected java.util.Map<java.lang.String,CamelContext> getCamelContextMap()
- Specified by:
getCamelContextMap
in class MainSupport
createModelFileGenerator
protected ModelFileGenerator createModelFileGenerator()
throws javax.xml.bind.JAXBException
- Specified by:
createModelFileGenerator
in class MainSupport
- Throws:
javax.xml.bind.JAXBException
Apache CAMEL