Class Main
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.main.BaseMainSupport
-
- org.apache.camel.main.MainSupport
-
- org.apache.camel.main.MainCommandLineSupport
-
- org.apache.camel.spring.Main
-
- org.apache.camel.spring.javaconfig.Main
-
public class Main extends org.apache.camel.spring.MainThe Main class which takes the spring java config parameter
-
-
Field Summary
-
Fields inherited from class org.apache.camel.main.MainSupport
DEFAULT_EXIT_CODE, exitCode, LOG, shutdownStrategy, UNINITIALIZED_EXIT_CODE
-
Fields inherited from class org.apache.camel.main.BaseMainSupport
camelContext, camelTemplate, DEFAULT_PROPERTY_PLACEHOLDER_LOCATION, defaultPropertyPlaceholderLocation, INITIAL_PROPERTIES_LOCATION, initialProperties, listeners, mainConfigurationProperties, OVERRIDE_PROPERTIES_LOCATION, overrideProperties, PROPERTY_PLACEHOLDER_LOCATION, propertyPlaceholderLocations, routesCollector, wildcardProperties
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.springframework.context.support.AbstractApplicationContextcreateDefaultApplicationContext()StringgetBasedPackages()Class[]getConfigClass()StringgetConfigClasses()StringgetConfigClassesString()Deprecated.static voidmain(String... args)voidsetBasedPackages(String config)Sets the base packages where Spring annotation scanning is performed.voidsetConfigClass(Class... configClass)Sets the Spring @Configuration classes to use.voidsetConfigClasses(String config)Sets the name of Spring @Configuration classes to use.voidsetConfigClassesString(String config)Deprecated.-
Methods inherited from class org.apache.camel.spring.Main
createAdditionalLocationsFromClasspath, createCamelContext, doStart, doStop, findLocations, findOrCreateCamelTemplate, getApplicationContext, getApplicationContextUri, getFileApplicationContextUri, getInstance, getParentApplicationContext, getParentApplicationContextUri, setApplicationContext, setApplicationContextUri, setFileApplicationContextUri, setParentApplicationContext, setParentApplicationContextUri
-
Methods inherited from class org.apache.camel.main.MainCommandLineSupport
addOption, parseArguments, run, showOptions, showOptionsHeader
-
Methods inherited from class org.apache.camel.main.MainSupport
afterStart, afterStop, beforeStart, beforeStop, completed, configureLifecycle, enableTrace, getCompleteTask, getDuration, getDurationHitExitCode, getDurationIdle, getDurationMaxMessages, getExitCode, getShutdownStrategy, isTrace, run, setDuration, setDurationHitExitCode, setDurationIdle, setDurationMaxMessages, setShutdownStrategy, waitUntilCompleted
-
Methods inherited from class org.apache.camel.main.BaseMainSupport
addInitialProperty, addMainListener, addOverrideProperty, addProperty, autoConfigurationFailFast, autoConfigurationFromProperties, autoConfigurationMainConfiguration, autoConfigurationPropertiesComponent, autoconfigure, autowireConfigurationFromRegistry, autowireWildcardProperties, computeProperties, configure, configurePropertiesService, configureRoutes, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, getCamelContext, getCamelTemplate, getDefaultPropertyPlaceholderLocation, getInitialProperties, getOverrideProperties, getPropertyPlaceholderLocations, getRouteDefinitions, getRoutesCollector, initCamelContext, isAutoConfigurationEnabled, isServiceEnabled, loadConfigurations, loadRouteBuilders, optionKey, postProcessCamelContext, removeMainListener, setAutoConfigurationEnabled, setDefaultPropertyPlaceholderLocation, setInitialProperties, setOverrideProperties, setPropertiesOnTarget, setPropertyPlaceholderLocations, setRoutesCollector, validateOptionAndValue
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
-
-
-
Method Detail
-
setBasedPackages
public void setBasedPackages(String config)
Sets the base packages where Spring annotation scanning is performed. You can separate multiple packages using comma or semi colon.
-
getBasedPackages
public String getBasedPackages()
-
setConfigClasses
public void setConfigClasses(String config)
Sets the name of Spring @Configuration classes to use. You can separate multiple classes using comma or semi colon.
-
getConfigClasses
public String getConfigClasses()
-
setConfigClassesString
@Deprecated public void setConfigClassesString(String config)
Deprecated.
-
getConfigClassesString
@Deprecated public String getConfigClassesString()
Deprecated.
-
getConfigClass
public Class[] getConfigClass()
-
setConfigClass
public void setConfigClass(Class... configClass)
Sets the Spring @Configuration classes to use.
-
createDefaultApplicationContext
protected org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()
- Overrides:
createDefaultApplicationContextin classorg.apache.camel.spring.Main
-
-