public class Main extends org.apache.camel.impl.MainSupport
ApplicationContext
.
By placing a file in the LOCATION_PROPERTIES
directory of any JARs on the classpath,
allows this Main class to load those additional Spring XML files as Spring
ApplicationContext
to be included.
Each line in the LOCATION_PROPERTIES
is a reference to a Spring XML file to include,
which by default gets loaded from classpath.Modifier and Type | Field and Description |
---|---|
protected static Main |
instance |
static String |
LOCATION_PROPERTIES |
camelContexts, camelTemplate, completed, DEFAULT_EXIT_CODE, duration, durationHitExitCode, durationIdle, durationMaxMessages, exitCode, fileWatchDirectory, fileWatchDirectoryRecursively, hangupInterceptorEnabled, latch, listeners, LOG, options, reloadStrategy, routeBuilderClasses, routeBuilders, timeUnit, trace, UNINITIALIZED_EXIT_CODE
Constructor and Description |
---|
Main() |
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, isFileWatchDirectoryRecursively, isTrace, loadRouteBuilders, parseArguments, postProcessCamelContext, postProcessContext, removeMainListener, run, run, setDuration, setDurationHitExitCode, setDurationIdle, setDurationMaxMessages, setFileWatchDirectory, setFileWatchDirectoryRecursively, setReloadStrategy, setRouteBuilderClasses, setRouteBuilders, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted
public static final String LOCATION_PROPERTIES
public Main()
public static Main getInstance()
public AbstractApplicationContext getApplicationContext()
public void setApplicationContext(AbstractApplicationContext applicationContext)
public String getApplicationContextUri()
public void setApplicationContextUri(String applicationContextUri)
public String getFileApplicationContextUri()
public void setFileApplicationContextUri(String fileApplicationContextUri)
public AbstractApplicationContext getParentApplicationContext()
public void setParentApplicationContext(AbstractApplicationContext parentApplicationContext)
public String getParentApplicationContextUri()
public void setParentApplicationContextUri(String parentApplicationContextUri)
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 AbstractApplicationContext createDefaultApplicationContext() throws IOException
IOException
protected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
getCamelContextMap
in class org.apache.camel.main.MainSupport
protected AbstractApplicationContext createAdditionalLocationsFromClasspath() throws IOException
IOException
protected void findLocations(Set<String> locations, ClassLoader classLoader) throws IOException
IOException
Apache Camel