public class Main
extends org.apache.camel.main.MainSupport
Modifier and Type | Field and Description |
---|---|
protected static Main |
instance |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
protected org.osgi.framework.BundleContext |
createBundleContext() |
protected org.osgi.framework.BundleContext |
createBundleContext(String name,
String[]... configAdminPidFiles) |
protected void |
doStart() |
protected void |
doStop() |
protected org.apache.camel.ProducerTemplate |
findOrCreateCamelTemplate() |
String |
getBundleName() |
protected Map<String,org.apache.camel.CamelContext> |
getCamelContextMap() |
String |
getConfigAdminFileName() |
String |
getConfigAdminPid() |
String |
getDescriptors() |
static Main |
getInstance()
Returns the currently executing main
|
boolean |
isIncludeSelfAsBundle() |
static void |
main(String... args) |
void |
setBundleName(String bundleName) |
void |
setConfigAdminFileName(String fileName) |
void |
setConfigAdminPid(String pid) |
void |
setDescriptors(String descriptors) |
void |
setIncludeSelfAsBundle(boolean includeSelfAsBundle) |
addMainListener, addOption, addRouteBuilder, afterStart, afterStop, beforeStart, beforeStop, completed, disableHangupSupport, enableHangupSupport, enableTrace, getCamelContexts, getCamelTemplate, getDuration, getDurationHitExitCode, getExitCode, getModelJAXBContextFactory, getRouteBuilderClasses, getRouteBuilders, getRouteDefinitions, getTimeUnit, isTrace, loadRouteBuilders, parseArguments, postProcessCamelContext, postProcessContext, removeMainListener, run, run, setDuration, setDurationHitExitCode, setRouteBuilderClasses, setRouteBuilders, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted
protected static Main instance
public static Main getInstance()
protected void doStart() throws Exception
doStart
in class org.apache.camel.main.MainSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.main.MainSupport
Exception
protected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
findOrCreateCamelTemplate
in class org.apache.camel.main.MainSupport
protected org.osgi.framework.BundleContext createBundleContext() throws Exception
Exception
protected org.osgi.framework.BundleContext createBundleContext(String name, String[]... configAdminPidFiles) throws Exception
Exception
protected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
getCamelContextMap
in class org.apache.camel.main.MainSupport
public String getDescriptors()
public void setDescriptors(String descriptors)
public String getBundleName()
public void setBundleName(String bundleName)
public boolean isIncludeSelfAsBundle()
public void setIncludeSelfAsBundle(boolean includeSelfAsBundle)
public String getConfigAdminPid()
public void setConfigAdminPid(String pid)
public String getConfigAdminFileName()
public void setConfigAdminFileName(String fileName)
Apache Camel