Package org.apache.camel.spring.xml
Class CamelContextFactoryBean
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
org.apache.camel.spring.xml.CamelContextFactoryBean
- All Implemented Interfaces:
EventListener,org.apache.camel.model.rest.RestContainer,org.apache.camel.model.RouteConfigurationContainer,org.apache.camel.model.RouteContainer,org.apache.camel.model.RouteTemplateContainer,org.apache.camel.model.TemplatedRouteContainer,org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.core.Ordered
@Metadata(label="spring,configuration")
public class CamelContextFactoryBean
extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
implements org.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
CamelContext using XML configuration.
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidconfigure(org.apache.camel.spring.SpringCamelContext ctx) Apply additional configuration to the contextprotected org.apache.camel.spring.SpringCamelContextCreate the contextprotected voidfindRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders) protected voidfindRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) org.springframework.context.ApplicationContextprotected <S> SgetBeanForType(Class<S> clazz) org.springframework.beans.factory.config.BeanPostProcessorList<?> getBeans()List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> List<org.apache.camel.model.RouteBuilderDefinition> org.apache.camel.core.xml.CamelJMXAgentDefinitionorg.apache.camel.core.xml.CamelPropertyPlaceholderDefinitionorg.apache.camel.core.xml.CamelRouteControllerDefinitionorg.apache.camel.core.xml.CamelStreamCachingStrategyDefinitionorg.apache.camel.spring.SpringCamelContextgetContext(boolean create) org.apache.camel.model.ContextScanDefinitionorg.apache.camel.model.dataformat.DataFormatsDefinitiongetDebug()org.apache.camel.model.FaultToleranceConfigurationDefinitionorg.apache.camel.model.Resilience4jConfigurationDefinitionorg.apache.camel.model.cloud.ServiceCallConfigurationDefinitionList<org.apache.camel.model.FaultToleranceConfigurationDefinition> org.apache.camel.model.GlobalOptionsDefinitionList<org.apache.camel.model.InterceptFromDefinition> List<org.apache.camel.model.InterceptDefinition> List<org.apache.camel.model.InterceptSendToEndpointDefinition> Class<org.apache.camel.spring.SpringCamelContext> List<org.apache.camel.model.OnCompletionDefinition> List<org.apache.camel.model.OnExceptionDefinition> intgetOrder()String[]org.apache.camel.model.PackageScanDefinitionintgetPhase()List<org.apache.camel.model.Resilience4jConfigurationDefinition> org.apache.camel.model.rest.RestConfigurationDefinitionList<org.apache.camel.model.RestContextRefDefinition> List<org.apache.camel.model.rest.RestDefinition> getRests()List<org.apache.camel.model.RouteConfigurationContextRefDefinition> List<org.apache.camel.model.RouteConfigurationDefinition> List<org.apache.camel.model.RouteContextRefDefinition> List<org.apache.camel.model.RouteDefinition> List<org.apache.camel.model.RouteTemplateContextRefDefinition> List<org.apache.camel.model.RouteTemplateDefinition> List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> org.apache.camel.ShutdownRouteorg.apache.camel.ShutdownRunningTaskorg.apache.camel.StartupSummaryLevelList<org.apache.camel.model.TemplatedRouteDefinition> List<org.apache.camel.model.ThreadPoolProfileDefinition> getTrace()org.apache.camel.model.transformer.TransformersDefinitionorg.apache.camel.TypeConverterExistsorg.apache.camel.LoggingLevelorg.apache.camel.model.validator.ValidatorsDefinitionprotected voidinitBeanPostProcessor(org.apache.camel.spring.SpringCamelContext context) protected voidinitCustomRegistry(org.apache.camel.spring.SpringCamelContext context) protected voidbooleanbooleanprotected org.apache.camel.spring.SpringCamelContextvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) protected voidpostProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder) voidsetAllowUseOriginalMessage(String allowUseOriginalMessage) Sets whether to allow access to the original message from Camel's error handler, or fromUnitOfWork.getOriginalInMessage().voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetAutoStartup(String autoStartup) Sets whether the object should automatically start when Camel starts.voidsetAutowiredEnabled(String autowiredEnabled) Whether autowiring is enabled.voidsetBacklogTrace(String backlogTrace) Sets whether backlog tracing is enabled or not.voidsetBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor postProcessor) voidsetBeanPostProcessorEnabled(String beanPostProcessorEnabled) Can be used to turn off bean post processing.voidMiscellaneous configurationsvoidsetBeansFactory(List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> beansFactory) Miscellaneous configurationsvoidsetBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs) Refers to JavaRouteBuilderinstances to include as routes in this CamelContext.voidsetCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition agent) Configuration of JMX Agent.voidsetCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder) Configuration of property placeholdervoidsetCamelRouteController(org.apache.camel.core.xml.CamelRouteControllerDefinition camelRouteController) Configuration of route controller.voidsetCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy) Configuration of stream caching.voidsetCaseInsensitiveHeaders(String caseInsensitiveHeaders) Whether to use case sensitive or insensitive headers.voidsetContext(org.apache.camel.spring.SpringCamelContext context) voidsetContextScan(org.apache.camel.model.ContextScanDefinition contextScan) Sets the context scanning (eg Spring's ApplicationContext) information.voidsetDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats) Configuration of data formats.voidSets whether debugging is enabled or not.voidsetDefaultFaultToleranceConfiguration(org.apache.camel.model.FaultToleranceConfigurationDefinition defaultFaultToleranceConfiguration) MicroProfile Fault Tolerance EIP default configurationvoidsetDefaultResilience4jConfiguration(org.apache.camel.model.Resilience4jConfigurationDefinition defaultResilience4jConfiguration) Resilience4j EIP default configurationvoidsetDefaultServiceCallConfiguration(org.apache.camel.model.cloud.ServiceCallConfigurationDefinition defaultServiceCallConfiguration) ServiceCall EIP default configurationvoidsetDelayer(String delayer) Sets a delay value in millis that a message is delayed at every step it takes in the route path, slowing the process down to better observe what is occurringvoidsetDependsOn(String dependsOn) List of other bean id's this CamelContext depends up.voidsetDumpRoutes(String dumpRoutes) If dumping is enabled then Camel will during startup dump all loaded routes (incl rests and route templates) represented as XML DSL into the log.voidsetEndpoints(List<CamelEndpointFactoryBean> endpoints) Configuration of endpointsvoidsetErrorHandlerRef(String errorHandlerRef) Sets the name of the error handler object used to default the error handling strategyvoidsetFaultToleranceConfigurations(List<org.apache.camel.model.FaultToleranceConfigurationDefinition> faultToleranceConfigurations) MicroProfile Circuit Breaker EIP configurationsvoidsetGlobalOptions(org.apache.camel.model.GlobalOptionsDefinition globalOptions) Configuration of CamelContext properties such as limit of debug logging and other general options.voidsetImplicitId(boolean flag) voidsetInflightRepositoryBrowseEnabled(String inflightRepositoryBrowseEnabled) Sets whether the inflight repository should allow browsing each inflight exchange.voidsetInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms) Configuration of interceptors that triggers from the beginning of routes.voidsetIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts) Configuration of interceptors.voidsetInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints) Configuration of interceptors that triggers sending messages to endpoints.voidsetLoadHealthChecks(String loadHealthChecks) Whether to load custom health checks by scanning classpath.voidsetLoadTypeConverters(String loadTypeConverters) Whether to load custom type converters by scanning classpath.voidsetLogExhaustedMessageBody(String logExhaustedMessageBody) Sets whether to log exhausted message body with message history.voidsetLogMask(String logMask) Sets whether security mask for Logging is enabled or not.voidsetManagementNamePattern(String managementNamePattern) The naming pattern for creating the CamelContext management name.voidsetMDCLoggingKeysPattern(String mdcLoggingKeysPattern) Sets the pattern used for determine which custom MDC keys to propagate during message routing when the routing engine continues routing asynchronously for the given message.voidsetMessageHistory(String messageHistory) Sets whether message history is enabled or not.voidsetOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions) Configuration of sub routes to run at the completion of routing.voidsetOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions) Configuration of error handlers that triggers on exceptions thrown.voidsetPackages(String[] packages) Sets the package names to be recursively searched for Java classes which extendRouteBuilderto be auto-wired up to theCamelContextas a route.voidsetPackageScan(org.apache.camel.model.PackageScanDefinition packageScan) Sets the package scanning information.voidsetRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies) Configuration of redelivery settings.voidsetResilience4jConfigurations(List<org.apache.camel.model.Resilience4jConfigurationDefinition> resilience4jConfigurations) Resilience4j Circuit Breaker EIP configurationsvoidsetRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration) Configuration for rest-dslvoidsetRestRefs(List<org.apache.camel.model.RestContextRefDefinition> restRefs) Refers to XML rest-dsl to include as REST services in this CamelContext.voidContains the rest services defined using the rest-dslvoidsetRouteConfigurationRefs(List<org.apache.camel.model.RouteConfigurationContextRefDefinition> routeConfigurationRefs) Refers to XML route configurations to include as route configurations in this CamelContext.voidsetRouteConfigurations(List<org.apache.camel.model.RouteConfigurationDefinition> routeConfigurations) Contains the Camel route configurationsvoidsetRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs) Refers to XML routes to include as routes in this CamelContext.voidContains the Camel routesvoidsetRouteTemplateRefs(List<org.apache.camel.model.RouteTemplateContextRefDefinition> routeTemplateRefs) Refers to XML route templates to include as route templates in this CamelContext.voidsetRouteTemplates(List<org.apache.camel.model.RouteTemplateDefinition> routeTemplates) Contains the Camel route templatesvoidsetRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled) Sets whetherRuntimeEndpointRegistryis enabled.voidsetServiceCallConfigurations(List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> serviceCallConfigurations) ServiceCall EIP configurationsvoidsetShutdownEager(String shutdownEager) Whether to shutdown CamelContext eager when Spring is shutting down.voidsetShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) Sets the ShutdownRoute option for routes.voidsetShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) Sets the ShutdownRunningTask option to use when shutting down a route.voidsetSourceLocationEnabled(String sourceLocationEnabled) Whether to capture precise source location:line-number for all EIPs in Camel routes.voidsetStartupSummaryLevel(org.apache.camel.StartupSummaryLevel startupSummaryLevel) Controls the level of information logged during startup (and shutdown) of CamelContext.voidsetStreamCache(String streamCache) Sets whether stream caching is enabled or not.voidsetTemplatedRoutes(List<org.apache.camel.model.TemplatedRouteDefinition> templatedRoutes) Contains the Camel templated routesvoidsetThreadNamePattern(String threadNamePattern) Sets the thread name pattern used for creating the full thread name.voidsetThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles) Configuration of thread pool profiles.voidsetThreadPools(List<CamelThreadPoolFactoryBean> threadPools) Configuration of thread poolvoidSets whether tracing is enabled or not.voidsetTraceLoggingFormat(String traceLoggingFormat) To use a custom tracing logging format.voidsetTracePattern(String tracePattern) Tracing pattern to match which node EIPs to trace.voidsetTransformers(org.apache.camel.model.transformer.TransformersDefinition transformers) Configuration of transformers.voidsetTypeConverterExists(org.apache.camel.TypeConverterExists typeConverterExists) What should happen when attempting to add a duplicate type converter.voidsetTypeConverterExistsLoggingLevel(org.apache.camel.LoggingLevel typeConverterExistsLoggingLevel) The logging level to use when logging that a type converter already exists when attempting to add a duplicate type converter.voidsetTypeConverterStatisticsEnabled(String typeConverterStatisticsEnabled) Sets whether or not type converter statistics is enabled.voidsetUseBreadcrumb(String useBreadcrumb) Set whether breadcrumb is enabled.voidsetUseDataType(String useDataType) Whether to enable using data type on Camel messages.voidsetUseMDCLogging(String useMDCLogging) Set whether MDC is enabled.voidsetValidators(org.apache.camel.model.validator.ValidatorsDefinition validators) Configuration of validators.voidstart()voidstop()Methods inherited from class org.apache.camel.core.xml.AbstractCamelContextFactoryBean
destroy, findRouteBuilders, getContext, getContextClassLoaderOnStart, getObject, initCamelContext, initJMXAgent, initRestRefs, initRouteConfigurationRefs, initRouteController, initRouteRefs, initRouteTemplateRefs, initStreamCachingStrategy, initThreadPoolProfiles, installRoutes, isSingleton, setupRoutesMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface org.springframework.beans.factory.FactoryBean
getObject, isSingleton
-
Constructor Details
-
CamelContextFactoryBean
public CamelContextFactoryBean()
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>- Specified by:
getObjectTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getBeanForType
- Specified by:
getBeanForTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
findRouteBuildersByPackageScan
protected void findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders) throws Exception - Specified by:
findRouteBuildersByPackageScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Throws:
Exception
-
findRouteBuildersByContextScan
protected void findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders) throws Exception - Specified by:
findRouteBuildersByContextScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Throws:
Exception
-
initBeanPostProcessor
- Specified by:
initBeanPostProcessorin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
postProcessBeforeInit
- Specified by:
postProcessBeforeInitin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Throws:
Exception
-
initCustomRegistry
- Specified by:
initCustomRegistryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
initPropertyPlaceholder
- Overrides:
initPropertyPlaceholderin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Throws:
Exception
-
start
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
- Specified by:
getPhasein interfaceorg.springframework.context.Phased
-
getOrder
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getApplicationContext
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setBeanPostProcessor
public void setBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor postProcessor) -
getBeanPostProcessor
-
createContext
Create the context -
configure
Apply additional configuration to the context -
newCamelContext
-
getContext
- Specified by:
getContextin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setContext
-
getRoutes
- Specified by:
getRoutesin interfaceorg.apache.camel.model.RouteContainer- Specified by:
getRoutesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRoutes
Contains the Camel routes- Specified by:
setRoutesin interfaceorg.apache.camel.model.RouteContainer
-
getRouteConfigurations
- Specified by:
getRouteConfigurationsin interfaceorg.apache.camel.model.RouteConfigurationContainer- Specified by:
getRouteConfigurationsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteConfigurations
public void setRouteConfigurations(List<org.apache.camel.model.RouteConfigurationDefinition> routeConfigurations) Contains the Camel route configurations- Specified by:
setRouteConfigurationsin interfaceorg.apache.camel.model.RouteConfigurationContainer
-
getRouteTemplates
- Specified by:
getRouteTemplatesin interfaceorg.apache.camel.model.RouteTemplateContainer- Specified by:
getRouteTemplatesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteTemplates
Contains the Camel route templates- Specified by:
setRouteTemplatesin interfaceorg.apache.camel.model.RouteTemplateContainer
-
getTemplatedRoutes
- Specified by:
getTemplatedRoutesin interfaceorg.apache.camel.model.TemplatedRouteContainer- Specified by:
getTemplatedRoutesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTemplatedRoutes
public void setTemplatedRoutes(List<org.apache.camel.model.TemplatedRouteDefinition> templatedRoutes) Contains the Camel templated routes- Specified by:
setTemplatedRoutesin interfaceorg.apache.camel.model.TemplatedRouteContainer
-
getRests
- Specified by:
getRestsin interfaceorg.apache.camel.model.rest.RestContainer- Specified by:
getRestsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRests
Contains the rest services defined using the rest-dsl- Specified by:
setRestsin interfaceorg.apache.camel.model.rest.RestContainer
-
getRestConfiguration
- Specified by:
getRestConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRestConfiguration
public void setRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration) Configuration for rest-dsl -
getEndpoints
- Specified by:
getEndpointsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setEndpoints
Configuration of endpoints -
getRedeliveryPolicies
- Specified by:
getRedeliveryPoliciesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getIntercepts
- Specified by:
getInterceptsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setIntercepts
Configuration of interceptors. -
getInterceptFroms
- Specified by:
getInterceptFromsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setInterceptFroms
Configuration of interceptors that triggers from the beginning of routes. -
getInterceptSendToEndpoints
- Specified by:
getInterceptSendToEndpointsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setInterceptSendToEndpoints
public void setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints) Configuration of interceptors that triggers sending messages to endpoints. -
getGlobalOptions
- Specified by:
getGlobalOptionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setGlobalOptions
Configuration of CamelContext properties such as limit of debug logging and other general options. -
getPackages
- Specified by:
getPackagesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setPackages
Sets the package names to be recursively searched for Java classes which extendRouteBuilderto be auto-wired up to theCamelContextas a route. Note that classes are excluded if they are specifically configured in the spring.xml A more advanced configuration can be done usingsetPackageScan(org.apache.camel.model.PackageScanDefinition)- Parameters:
packages- the package names which are recursively searched- See Also:
-
getPackageScan
- Specified by:
getPackageScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setPackageScan
Sets the package scanning information. Package scanning allows for the automatic discovery of certain camel classes at runtime for inclusion e.g.RouteBuilderimplementations- Specified by:
setPackageScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Parameters:
packageScan- the package scan
-
getContextScan
- Specified by:
getContextScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setContextScan
Sets the context scanning (eg Spring's ApplicationContext) information. Context scanning allows for the automatic discovery of Camel routes runtime for inclusion e.g.RouteBuilderimplementations- Specified by:
setContextScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>- Parameters:
contextScan- the context scan
-
getCamelPropertyPlaceholder
- Specified by:
getCamelPropertyPlaceholderin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setCamelPropertyPlaceholder
public void setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder) Configuration of property placeholder -
getCamelStreamCachingStrategy
public org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition getCamelStreamCachingStrategy()- Specified by:
getCamelStreamCachingStrategyin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setCamelStreamCachingStrategy
public void setCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy) Configuration of stream caching. -
getCamelRouteController
- Specified by:
getCamelRouteControllerin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setCamelRouteController
public void setCamelRouteController(org.apache.camel.core.xml.CamelRouteControllerDefinition camelRouteController) Configuration of route controller. -
setCamelJMXAgent
Configuration of JMX Agent. -
getTrace
- Specified by:
getTracein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTrace
Sets whether tracing is enabled or not. To use tracing then this must be enabled on startup to be installed in the CamelContext. -
getStartupSummaryLevel
- Specified by:
getStartupSummaryLevelin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setStartupSummaryLevel
Controls the level of information logged during startup (and shutdown) of CamelContext. -
getBacklogTrace
- Specified by:
getBacklogTracein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBacklogTrace
Sets whether backlog tracing is enabled or not. To use backlog tracing then this must be enabled on startup to be installed in the CamelContext. -
getDebug
- Specified by:
getDebugin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDebug
Sets whether debugging is enabled or not. To use debugging then this must be enabled on startup to be installed in the CamelContext. -
getTracePattern
- Specified by:
getTracePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTracePattern
Tracing pattern to match which node EIPs to trace. For example to match all To EIP nodes, use to*. The pattern matches by node and route id's Multiple patterns can be separated by comma. -
getTraceLoggingFormat
- Specified by:
getTraceLoggingFormatin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTraceLoggingFormat
To use a custom tracing logging format. The default format (arrow, routeId, label) is: %-4.4s [%-12.12s] [%-33.33s] -
getMessageHistory
- Specified by:
getMessageHistoryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setMessageHistory
Sets whether message history is enabled or not. -
getSourceLocationEnabled
- Specified by:
getSourceLocationEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setSourceLocationEnabled
Whether to capture precise source location:line-number for all EIPs in Camel routes. Enabling this will impact parsing Java based routes (also Groovy, etc.) on startup as this uses JDK StackTraceElement to calculate the location from the Camel route, which comes with a performance cost. This only impact startup, not the performance of the routes at runtime. -
getLogMask
- Specified by:
getLogMaskin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLogMask
Sets whether security mask for Logging is enabled or not. -
getLogExhaustedMessageBody
- Specified by:
getLogExhaustedMessageBodyin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLogExhaustedMessageBody
Sets whether to log exhausted message body with message history. -
getStreamCache
- Specified by:
getStreamCachein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setStreamCache
Sets whether stream caching is enabled or not. -
getDelayer
- Specified by:
getDelayerin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDelayer
Sets a delay value in millis that a message is delayed at every step it takes in the route path, slowing the process down to better observe what is occurring -
getAutoStartup
- Specified by:
getAutoStartupin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setAutoStartup
Sets whether the object should automatically start when Camel starts. Important: Currently only routes can be disabled, asCamelContexts are always started.
Note: When setting auto startup false onCamelContextthen that takes precedence and no routes is started. You would need to startCamelContextexplicit using theCamelContextLifecycle.start()method, to start the context, and then you would need to start the routes manually usingRouteController.startRoute(String). -
getShutdownEager
-
setShutdownEager
Whether to shutdown CamelContext eager when Spring is shutting down. This ensure a cleaner shutdown of Camel, as dependent bean's are not shutdown at this moment. The bean's will then be shutdown after camelContext. -
getDumpRoutes
- Specified by:
getDumpRoutesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDumpRoutes
If dumping is enabled then Camel will during startup dump all loaded routes (incl rests and route templates) represented as XML DSL into the log. This is intended for trouble shooting or to assist during development. Sensitive information that may be configured in the route endpoints could potentially be included in the dump output and is therefore not recommended to be used for production usage. This requires to have camel-xml-jaxb on the classpath to be able to dump the routes as XML. -
getUseMDCLogging
- Specified by:
getUseMDCLoggingin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setUseMDCLogging
Set whether MDC is enabled. -
getMDCLoggingKeysPattern
- Specified by:
getMDCLoggingKeysPatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setMDCLoggingKeysPattern
Sets the pattern used for determine which custom MDC keys to propagate during message routing when the routing engine continues routing asynchronously for the given message. Setting this pattern to * will propagate all custom keys. Or setting the pattern to foo*,bar* will propagate any keys starting with either foo or bar. Notice that a set of standard Camel MDC keys are always propagated which starts with camel. as key name. The match rules are applied in this order (case insensitive): 1. exact match, returns true 2. wildcard match (pattern ends with a * and the name starts with the pattern), returns true 3. regular expression match, returns true 4. otherwise returns false -
getUseDataType
- Specified by:
getUseDataTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setUseDataType
Whether to enable using data type on Camel messages. Data type are automatic turned on if:- one ore more routes has been explicit configured with input and output types
- when using rest-dsl with binding turned on
-
getUseBreadcrumb
- Specified by:
getUseBreadcrumbin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setUseBreadcrumb
Set whether breadcrumb is enabled. -
getBeanPostProcessorEnabled
- Specified by:
getBeanPostProcessorEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBeanPostProcessorEnabled
Can be used to turn off bean post processing. Be careful to turn this off, as this means that beans that use Camel annotations such asEndpointInject,ProducerTemplate,Produce,Consumeetc will not be injected and in use. Turning this off should only be done if you are sure you do not use any of these Camel features. Not all runtimes allow turning this off. The default value is true (enabled). -
getAllowUseOriginalMessage
- Specified by:
getAllowUseOriginalMessagein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setAllowUseOriginalMessage
Sets whether to allow access to the original message from Camel's error handler, or fromUnitOfWork.getOriginalInMessage(). Turning this off can optimize performance, as defensive copy of the original message is not needed. -
getCaseInsensitiveHeaders
- Specified by:
getCaseInsensitiveHeadersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setCaseInsensitiveHeaders
Whether to use case sensitive or insensitive headers. Important: When using case sensitive (this is set to false). Then the map is case sensitive which means headers such as content-type and Content-Type are two different keys which can be a problem for some protocols such as HTTP based, which rely on case insensitive headers. However case sensitive implementations can yield faster performance. Therefore use case sensitive implementation with care. Default is true. -
getAutowiredEnabled
- Specified by:
getAutowiredEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setAutowiredEnabled
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. Default is true. -
getRuntimeEndpointRegistryEnabled
- Specified by:
getRuntimeEndpointRegistryEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRuntimeEndpointRegistryEnabled
Sets whetherRuntimeEndpointRegistryis enabled. -
getInflightRepositoryBrowseEnabled
- Specified by:
getInflightRepositoryBrowseEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setInflightRepositoryBrowseEnabled
Sets whether the inflight repository should allow browsing each inflight exchange. This is by default disabled as there is a very slight performance overhead when enabled. -
getManagementNamePattern
- Specified by:
getManagementNamePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setManagementNamePattern
The naming pattern for creating the CamelContext management name. -
getThreadNamePattern
- Specified by:
getThreadNamePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setThreadNamePattern
Sets the thread name pattern used for creating the full thread name. The default pattern is: Camel (#camelId#) thread ##counter# - #name# Where #camelId# is the name of theCamelContext
and #counter# is a unique incrementing counter.
and #name# is the regular thread name.
You can also use #longName# is the long thread name which can includes endpoint parameters etc. -
getLoadTypeConverters
- Specified by:
getLoadTypeConvertersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLoadTypeConverters
Whether to load custom type converters by scanning classpath. This is used for backwards compatibility with Camel 2.x. Its recommended to migrate to use fast type converter loading by setting @Converter(loader = true) on your custom type converter classes. -
getLoadHealthChecks
- Specified by:
getLoadHealthChecksin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLoadHealthChecks
Whether to load custom health checks by scanning classpath. -
getTypeConverterStatisticsEnabled
- Specified by:
getTypeConverterStatisticsEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTypeConverterStatisticsEnabled
Sets whether or not type converter statistics is enabled. By default the type converter utilization statistics is disabled. Notice: If enabled then there is a slight performance impact under very heavy load. -
getTypeConverterExists
- Specified by:
getTypeConverterExistsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTypeConverterExists
What should happen when attempting to add a duplicate type converter. The default behavior is to ignore the duplicate. -
getTypeConverterExistsLoggingLevel
- Specified by:
getTypeConverterExistsLoggingLevelin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTypeConverterExistsLoggingLevel
public void setTypeConverterExistsLoggingLevel(org.apache.camel.LoggingLevel typeConverterExistsLoggingLevel) The logging level to use when logging that a type converter already exists when attempting to add a duplicate type converter. The default logging level is DEBUG -
getCamelJMXAgent
- Specified by:
getCamelJMXAgentin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getRouteConfigurationRefs
public List<org.apache.camel.model.RouteConfigurationContextRefDefinition> getRouteConfigurationRefs()- Specified by:
getRouteConfigurationRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteConfigurationRefs
public void setRouteConfigurationRefs(List<org.apache.camel.model.RouteConfigurationContextRefDefinition> routeConfigurationRefs) Refers to XML route configurations to include as route configurations in this CamelContext. -
getRouteTemplateRefs
- Specified by:
getRouteTemplateRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteTemplateRefs
public void setRouteTemplateRefs(List<org.apache.camel.model.RouteTemplateContextRefDefinition> routeTemplateRefs) Refers to XML route templates to include as route templates in this CamelContext. -
getBuilderRefs
- Specified by:
getBuilderRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBuilderRefs
Refers to JavaRouteBuilderinstances to include as routes in this CamelContext. -
getRouteRefs
- Specified by:
getRouteRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteRefs
Refers to XML routes to include as routes in this CamelContext. -
getRestRefs
- Specified by:
getRestRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRestRefs
Refers to XML rest-dsl to include as REST services in this CamelContext. -
getErrorHandlerRef
- Specified by:
getErrorHandlerRefin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setErrorHandlerRef
Sets the name of the error handler object used to default the error handling strategy -
setDataFormats
Configuration of data formats. -
getDataFormats
- Specified by:
getDataFormatsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTransformers
Configuration of transformers. -
getTransformers
- Specified by:
getTransformersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setValidators
Configuration of validators. -
getValidators
- Specified by:
getValidatorsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRedeliveryPolicies
Configuration of redelivery settings. -
getBeansFactory
- Specified by:
getBeansFactoryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBeansFactory
public void setBeansFactory(List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> beansFactory) Miscellaneous configurations -
getBeans
- Specified by:
getBeansin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBeans
Miscellaneous configurations -
getDefaultServiceCallConfiguration
public org.apache.camel.model.cloud.ServiceCallConfigurationDefinition getDefaultServiceCallConfiguration()- Specified by:
getDefaultServiceCallConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDefaultServiceCallConfiguration
public void setDefaultServiceCallConfiguration(org.apache.camel.model.cloud.ServiceCallConfigurationDefinition defaultServiceCallConfiguration) ServiceCall EIP default configuration -
getServiceCallConfigurations
public List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> getServiceCallConfigurations()- Specified by:
getServiceCallConfigurationsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setServiceCallConfigurations
public void setServiceCallConfigurations(List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> serviceCallConfigurations) ServiceCall EIP configurations -
getDefaultResilience4jConfiguration
public org.apache.camel.model.Resilience4jConfigurationDefinition getDefaultResilience4jConfiguration()- Specified by:
getDefaultResilience4jConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDefaultResilience4jConfiguration
public void setDefaultResilience4jConfiguration(org.apache.camel.model.Resilience4jConfigurationDefinition defaultResilience4jConfiguration) Resilience4j EIP default configuration -
getResilience4jConfigurations
public List<org.apache.camel.model.Resilience4jConfigurationDefinition> getResilience4jConfigurations()- Specified by:
getResilience4jConfigurationsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setResilience4jConfigurations
public void setResilience4jConfigurations(List<org.apache.camel.model.Resilience4jConfigurationDefinition> resilience4jConfigurations) Resilience4j Circuit Breaker EIP configurations -
getDefaultFaultToleranceConfiguration
public org.apache.camel.model.FaultToleranceConfigurationDefinition getDefaultFaultToleranceConfiguration()- Specified by:
getDefaultFaultToleranceConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDefaultFaultToleranceConfiguration
public void setDefaultFaultToleranceConfiguration(org.apache.camel.model.FaultToleranceConfigurationDefinition defaultFaultToleranceConfiguration) MicroProfile Fault Tolerance EIP default configuration -
getFaultToleranceConfigurations
public List<org.apache.camel.model.FaultToleranceConfigurationDefinition> getFaultToleranceConfigurations()- Specified by:
getFaultToleranceConfigurationsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setFaultToleranceConfigurations
public void setFaultToleranceConfigurations(List<org.apache.camel.model.FaultToleranceConfigurationDefinition> faultToleranceConfigurations) MicroProfile Circuit Breaker EIP configurations -
setOnExceptions
Configuration of error handlers that triggers on exceptions thrown. -
getOnExceptions
- Specified by:
getOnExceptionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getOnCompletions
- Specified by:
getOnCompletionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setOnCompletions
Configuration of sub routes to run at the completion of routing. -
getShutdownRoute
- Specified by:
getShutdownRoutein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setShutdownRoute
Sets the ShutdownRoute option for routes. -
getShutdownRunningTask
- Specified by:
getShutdownRunningTaskin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setShutdownRunningTask
Sets the ShutdownRunningTask option to use when shutting down a route. -
getThreadPoolProfiles
- Specified by:
getThreadPoolProfilesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setThreadPoolProfiles
public void setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles) Configuration of thread pool profiles. -
getThreadPools
-
setThreadPools
Configuration of thread pool -
getDependsOn
- Specified by:
getDependsOnin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDependsOn
List of other bean id's this CamelContext depends up. Multiple bean id's can be separated by comma. -
isImplicitId
-
setImplicitId
-