public class Main
extends org.apache.camel.main.MainSupport
| Modifier and Type | Field and Description |
|---|---|
protected static Main |
instance |
camelContexts, camelTemplate, completed, DEFAULT_EXIT_CODE, duration, durationHitExitCode, durationIdle, durationMaxMessages, exitCode, fileWatchDirectory, hangupInterceptorEnabled, latch, listeners, LOG, options, reloadStrategy, routeBuilderClasses, routeBuilders, timeUnit, trace, UNINITIALIZED_EXIT_CODE| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
protected org.osgi.framework.BundleContext |
createBundleContext() |
protected org.osgi.framework.BundleContext |
createBundleContext(String name,
ClassLoader loader,
String[]... configAdminPidFiles) |
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) |
void |
setLoader(ClassLoader loader) |
addMainListener, addOption, addRouteBuilder, afterStart, afterStop, beforeStart, beforeStop, completed, disableHangupSupport, enableHangupSupport, enableTrace, getCamelContexts, getCamelTemplate, getDuration, getDurationHitExitCode, getDurationIdle, getDurationMaxMessages, getExitCode, getFileWatchDirectory, getModelJAXBContextFactory, getReloadStrategy, getRouteBuilderClasses, getRouteBuilders, getRouteDefinitions, getTimeUnit, isTrace, loadRouteBuilders, parseArguments, postProcessCamelContext, postProcessContext, removeMainListener, run, run, setDuration, setDurationHitExitCode, setDurationIdle, setDurationMaxMessages, setFileWatchDirectory, setReloadStrategy, setRouteBuilderClasses, setRouteBuilders, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompletedprotected static Main instance
public static Main getInstance()
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.osgi.framework.BundleContext createBundleContext()
throws Exception
Exceptionprotected org.osgi.framework.BundleContext createBundleContext(String name, String[]... configAdminPidFiles) throws Exception
Exceptionprotected org.osgi.framework.BundleContext createBundleContext(String name, ClassLoader loader, String[]... configAdminPidFiles) throws Exception
Exceptionprotected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
getCamelContextMap in class org.apache.camel.main.MainSupportpublic 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)
public void setLoader(ClassLoader loader)
Apache Camel