public class Main
extends org.apache.camel.impl.MainSupport
| Modifier and Type | Field and Description |
|---|---|
protected static Main |
instance |
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.context.support.AbstractApplicationContext |
createDefaultApplicationContext() |
protected org.apache.camel.view.ModelFileGenerator |
createModelFileGenerator() |
protected void |
doStart() |
protected void |
doStop() |
protected org.apache.camel.ProducerTemplate |
findOrCreateCamelTemplate() |
org.springframework.context.support.AbstractApplicationContext |
getApplicationContext() |
String |
getApplicationContextUri() |
protected Map<String,org.apache.camel.CamelContext> |
getCamelContextMap() |
String |
getFileApplicationContextUri() |
static Main |
getInstance()
Returns the currently executing main
|
org.springframework.context.support.AbstractApplicationContext |
getParentApplicationContext() |
String |
getParentApplicationContextUri() |
static void |
main(String... args) |
void |
setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext) |
void |
setApplicationContextUri(String applicationContextUri) |
void |
setFileApplicationContextUri(String fileApplicationContextUri) |
void |
setParentApplicationContext(org.springframework.context.support.AbstractApplicationContext parentApplicationContext) |
void |
setParentApplicationContextUri(String parentApplicationContextUri) |
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, waitUntilCompletedprotected static Main instance
public static Main getInstance()
public org.springframework.context.support.AbstractApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext)
public String getApplicationContextUri()
public void setApplicationContextUri(String applicationContextUri)
public String getFileApplicationContextUri()
public void setFileApplicationContextUri(String fileApplicationContextUri)
public org.springframework.context.support.AbstractApplicationContext getParentApplicationContext()
public void setParentApplicationContext(org.springframework.context.support.AbstractApplicationContext parentApplicationContext)
public String getParentApplicationContextUri()
public void setParentApplicationContextUri(String parentApplicationContextUri)
protected void doStart()
throws Exception
doStart in class org.apache.camel.main.MainSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.main.MainSupportExceptionprotected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
findOrCreateCamelTemplate in class org.apache.camel.main.MainSupportprotected org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()
protected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
getCamelContextMap in class org.apache.camel.main.MainSupportprotected org.apache.camel.view.ModelFileGenerator createModelFileGenerator()
throws JAXBException
createModelFileGenerator in class org.apache.camel.main.MainSupportJAXBExceptionApache Camel