org.apache.camel.test.blueprint
Class Main
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.main.MainSupport
org.apache.camel.test.blueprint.Main
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class Main
- extends org.apache.camel.main.MainSupport
A command line tool for booting up a CamelContext using an OSGi Blueprint XML file
Nested classes/interfaces inherited from class org.apache.camel.main.MainSupport |
org.apache.camel.main.MainSupport.Option, org.apache.camel.main.MainSupport.ParameterOption |
Fields inherited from class org.apache.camel.main.MainSupport |
aggregateDot, camelContexts, camelTemplate, completed, dotOutputDir, duration, latch, LOG, options, routeBuilderClasses, routeBuilders, routesOutputFile, timeUnit, trace |
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary |
Main()
|
Methods inherited from class org.apache.camel.main.MainSupport |
addOption, addRouteBuilder, afterStart, beforeStop, completed, enableHangupSupport, enableTrace, generateDot, getCamelContexts, getCamelTemplate, getDotOutputDir, getDuration, getRouteBuilderClasses, getRouteBuilders, getRouteDefinitions, getRoutesOutputFile, getTimeUnit, isAggregateDot, isTrace, loadRouteBuilders, outputRoutesToFile, parseArguments, postProcessCamelContext, postProcessContext, run, run, setAggregateDot, setDotOutputDir, setDuration, setRouteBuilderClasses, setRouteBuilders, setRoutesOutputFile, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, 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(String... args)
throws Exception
- Throws:
Exception
getInstance
public static Main getInstance()
- Returns the currently executing main
- Returns:
- the current running instance
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
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
findOrCreateCamelTemplate
protected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
- Specified by:
findOrCreateCamelTemplate
in class org.apache.camel.main.MainSupport
createBundleContext
protected org.osgi.framework.BundleContext createBundleContext()
throws Exception
- Throws:
Exception
createBundleContext
protected org.osgi.framework.BundleContext createBundleContext(String name)
throws Exception
- Throws:
Exception
getCamelContextMap
protected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
- Specified by:
getCamelContextMap
in class org.apache.camel.main.MainSupport
createModelFileGenerator
protected org.apache.camel.view.ModelFileGenerator createModelFileGenerator()
throws JAXBException
- Specified by:
createModelFileGenerator
in class org.apache.camel.main.MainSupport
- Throws:
JAXBException
getDescriptors
public String getDescriptors()
setDescriptors
public void setDescriptors(String descriptors)
getBundleName
public String getBundleName()
setBundleName
public void setBundleName(String bundleName)
isIncludeSelfAsBundle
public boolean isIncludeSelfAsBundle()
setIncludeSelfAsBundle
public void setIncludeSelfAsBundle(boolean includeSelfAsBundle)
getConfigAdminPid
public String getConfigAdminPid()
setConfigAdminPid
public void setConfigAdminPid(String pid)
getConfigAdminFileName
public String getConfigAdminFileName()
setConfigAdminFileName
public void setConfigAdminFileName(String fileName)
Apache Camel