Package org.apache.camel.spring
Class CamelContextFactoryBean
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
- org.apache.camel.spring.CamelContextFactoryBean
-
- All Implemented Interfaces:
EventListener,org.apache.camel.model.rest.RestContainer,org.apache.camel.model.RouteContainer,Aware,DisposableBean,FactoryBean<SpringCamelContext>,InitializingBean,ApplicationContextAware,ApplicationListener<ContextRefreshedEvent>,Lifecycle,Phased,Ordered
@Metadata(label="spring,configuration") public class CamelContextFactoryBean extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext> implements FactoryBean<SpringCamelContext>, InitializingBean, DisposableBean, ApplicationContextAware, Lifecycle, Phased, ApplicationListener<ContextRefreshedEvent>, Ordered
CamelContext using XML configuration.
-
-
Field Summary
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description CamelContextFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected voidconfigure(SpringCamelContext ctx)Apply additional configuration to the contextprotected SpringCamelContextcreateContext()Create 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)StringgetAllowUseOriginalMessage()ApplicationContextgetApplicationContext()StringgetAutoStartup()StringgetBacklogTrace()protected <S> SgetBeanForType(Class<S> clazz)BeanPostProcessorgetBeanPostProcessor()List<?>getBeans()List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>>getBeansFactory()List<org.apache.camel.model.RouteBuilderDefinition>getBuilderRefs()org.apache.camel.core.xml.CamelJMXAgentDefinitiongetCamelJMXAgent()org.apache.camel.core.xml.CamelPropertyPlaceholderDefinitiongetCamelPropertyPlaceholder()org.apache.camel.core.xml.CamelRouteControllerDefinitiongetCamelRouteController()org.apache.camel.core.xml.CamelStreamCachingStrategyDefinitiongetCamelStreamCachingStrategy()StringgetCaseInsensitiveHeaders()SpringCamelContextgetContext(boolean create)org.apache.camel.model.ContextScanDefinitiongetContextScan()org.apache.camel.model.dataformat.DataFormatsDefinitiongetDataFormats()StringgetDebug()org.apache.camel.model.FaultToleranceConfigurationDefinitiongetDefaultFaultToleranceConfiguration()org.apache.camel.model.HystrixConfigurationDefinitiongetDefaultHystrixConfiguration()org.apache.camel.model.Resilience4jConfigurationDefinitiongetDefaultResilience4jConfiguration()org.apache.camel.model.cloud.ServiceCallConfigurationDefinitiongetDefaultServiceCallConfiguration()StringgetDelayer()StringgetDependsOn()List<CamelEndpointFactoryBean>getEndpoints()StringgetErrorHandlerRef()List<org.apache.camel.model.FaultToleranceConfigurationDefinition>getFaultToleranceConfigurations()org.apache.camel.model.GlobalOptionsDefinitiongetGlobalOptions()List<org.apache.camel.model.HystrixConfigurationDefinition>getHystrixConfigurations()StringgetInflightRepositoryBrowseEnabled()List<org.apache.camel.model.InterceptFromDefinition>getInterceptFroms()List<org.apache.camel.model.InterceptDefinition>getIntercepts()List<org.apache.camel.model.InterceptSendToEndpointDefinition>getInterceptSendToEndpoints()StringgetLoadTypeConverters()StringgetLogExhaustedMessageBody()StringgetLogMask()StringgetManagementNamePattern()StringgetMDCLoggingKeysPattern()StringgetMessageHistory()Class<SpringCamelContext>getObjectType()List<org.apache.camel.model.OnCompletionDefinition>getOnCompletions()List<org.apache.camel.model.OnExceptionDefinition>getOnExceptions()intgetOrder()String[]getPackages()org.apache.camel.model.PackageScanDefinitiongetPackageScan()intgetPhase()List<CamelRedeliveryPolicyFactoryBean>getRedeliveryPolicies()List<org.apache.camel.model.Resilience4jConfigurationDefinition>getResilience4jConfigurations()org.apache.camel.model.rest.RestConfigurationDefinitiongetRestConfiguration()List<org.apache.camel.model.RestContextRefDefinition>getRestRefs()List<org.apache.camel.model.rest.RestDefinition>getRests()List<org.apache.camel.model.RouteContextRefDefinition>getRouteRefs()List<org.apache.camel.model.RouteDefinition>getRoutes()StringgetRuntimeEndpointRegistryEnabled()List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition>getServiceCallConfigurations()StringgetShutdownEager()org.apache.camel.ShutdownRoutegetShutdownRoute()org.apache.camel.ShutdownRunningTaskgetShutdownRunningTask()StringgetStreamCache()StringgetThreadNamePattern()List<org.apache.camel.model.ThreadPoolProfileDefinition>getThreadPoolProfiles()List<CamelThreadPoolFactoryBean>getThreadPools()StringgetTrace()StringgetTracePattern()org.apache.camel.model.transformer.TransformersDefinitiongetTransformers()org.apache.camel.TypeConverterExistsgetTypeConverterExists()org.apache.camel.LoggingLevelgetTypeConverterExistsLoggingLevel()StringgetTypeConverterStatisticsEnabled()StringgetUseBreadcrumb()StringgetUseDataType()StringgetUseMDCLogging()org.apache.camel.model.validator.ValidatorsDefinitiongetValidators()protected voidinitBeanPostProcessor(SpringCamelContext context)protected voidinitCustomRegistry(SpringCamelContext context)protected voidinitPropertyPlaceholder()booleanisImplicitId()booleanisRunning()protected SpringCamelContextnewCamelContext()voidonApplicationEvent(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(ApplicationContext applicationContext)voidsetAutoStartup(String autoStartup)Sets whether the object should automatically start when Camel starts.voidsetBacklogTrace(String backlogTrace)Sets whether backlog tracing is enabled or not.voidsetBeanPostProcessor(BeanPostProcessor postProcessor)voidsetBeans(List<?> beans)Miscellaneous 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(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.voidsetDebug(String debug)Sets whether debugging is enabled or not.voidsetDefaultFaultToleranceConfiguration(org.apache.camel.model.FaultToleranceConfigurationDefinition defaultFaultToleranceConfiguration)MicroProfile Fault Tolerance EIP default configurationvoidsetDefaultHystrixConfiguration(org.apache.camel.model.HystrixConfigurationDefinition defaultHystrixConfiguration)Hystrix 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.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.voidsetHystrixConfigurations(List<org.apache.camel.model.HystrixConfigurationDefinition> hystrixConfigurations)Hystrix Circuit Breaker EIP configurationsvoidsetImplicitId(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.voidsetLoadTypeConverters(String loadTypeConverters)Sets 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.voidsetRests(List<org.apache.camel.model.rest.RestDefinition> rests)Contains the rest services defined using the rest-dslvoidsetRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)Refers to XML routes to include as routes in this CamelContext.voidsetRoutes(List<org.apache.camel.model.RouteDefinition> routes)Contains the Camel routesvoidsetRuntimeEndpointRegistryEnabled(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.voidsetStreamCache(String streamCache)Sets whether stream caching is enabled or not.voidsetThreadNamePattern(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 poolvoidsetTrace(String trace)Sets whether tracing is enabled or not.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, initRouteController, initRouteRefs, initStreamCachingStrategy, initThreadPoolProfiles, installRoutes, isSingleton, setupRoutes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
-
Methods inherited from interface org.springframework.beans.factory.FactoryBean
getObject, isSingleton
-
-
-
-
Constructor Detail
-
CamelContextFactoryBean
public CamelContextFactoryBean()
-
-
Method Detail
-
getObjectType
public Class<SpringCamelContext> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<SpringCamelContext>- Specified by:
getObjectTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getBeanForType
protected <S> S getBeanForType(Class<S> clazz)
- Specified by:
getBeanForTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<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<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<SpringCamelContext>- Throws:
Exception
-
initBeanPostProcessor
protected void initBeanPostProcessor(SpringCamelContext context)
- Specified by:
initBeanPostProcessorin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
postProcessBeforeInit
protected void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
- Specified by:
postProcessBeforeInitin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>- Throws:
Exception
-
initCustomRegistry
protected void initCustomRegistry(SpringCamelContext context)
- Specified by:
initCustomRegistryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
initPropertyPlaceholder
protected void initPropertyPlaceholder() throws Exception
- Overrides:
initPropertyPlaceholderin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>- Throws:
Exception
-
onApplicationEvent
public void onApplicationEvent(ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceApplicationListener<ContextRefreshedEvent>
-
getApplicationContext
public ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceApplicationContextAware
-
setBeanPostProcessor
public void setBeanPostProcessor(BeanPostProcessor postProcessor)
-
getBeanPostProcessor
public BeanPostProcessor getBeanPostProcessor()
-
createContext
protected SpringCamelContext createContext()
Create the context
-
configure
protected void configure(SpringCamelContext ctx)
Apply additional configuration to the context
-
newCamelContext
protected SpringCamelContext newCamelContext()
-
getContext
public SpringCamelContext getContext(boolean create)
- Specified by:
getContextin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setContext
public void setContext(SpringCamelContext context)
-
getRoutes
public List<org.apache.camel.model.RouteDefinition> getRoutes()
- Specified by:
getRoutesin interfaceorg.apache.camel.model.RouteContainer- Specified by:
getRoutesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRoutes
public void setRoutes(List<org.apache.camel.model.RouteDefinition> routes)
Contains the Camel routes- Specified by:
setRoutesin interfaceorg.apache.camel.model.RouteContainer
-
getRests
public List<org.apache.camel.model.rest.RestDefinition> getRests()
- Specified by:
getRestsin interfaceorg.apache.camel.model.rest.RestContainer- Specified by:
getRestsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRests
public void setRests(List<org.apache.camel.model.rest.RestDefinition> rests)
Contains the rest services defined using the rest-dsl- Specified by:
setRestsin interfaceorg.apache.camel.model.rest.RestContainer
-
getRestConfiguration
public org.apache.camel.model.rest.RestConfigurationDefinition getRestConfiguration()
- Specified by:
getRestConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRestConfiguration
public void setRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration)
Configuration for rest-dsl
-
getEndpoints
public List<CamelEndpointFactoryBean> getEndpoints()
- Specified by:
getEndpointsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setEndpoints
public void setEndpoints(List<CamelEndpointFactoryBean> endpoints)
Configuration of endpoints
-
getRedeliveryPolicies
public List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
- Specified by:
getRedeliveryPoliciesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getIntercepts
public List<org.apache.camel.model.InterceptDefinition> getIntercepts()
- Specified by:
getInterceptsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setIntercepts
public void setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts)
Configuration of interceptors.
-
getInterceptFroms
public List<org.apache.camel.model.InterceptFromDefinition> getInterceptFroms()
- Specified by:
getInterceptFromsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setInterceptFroms
public void setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)
Configuration of interceptors that triggers from the beginning of routes.
-
getInterceptSendToEndpoints
public List<org.apache.camel.model.InterceptSendToEndpointDefinition> getInterceptSendToEndpoints()
- Specified by:
getInterceptSendToEndpointsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setInterceptSendToEndpoints
public void setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)
Configuration of interceptors that triggers sending messages to endpoints.
-
getGlobalOptions
public org.apache.camel.model.GlobalOptionsDefinition getGlobalOptions()
- Specified by:
getGlobalOptionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setGlobalOptions
public void setGlobalOptions(org.apache.camel.model.GlobalOptionsDefinition globalOptions)
Configuration of CamelContext properties such as limit of debug logging and other general options.
-
getPackages
public String[] getPackages()
- Specified by:
getPackagesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setPackages
public void setPackages(String[] packages)
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:
setPackageScan(org.apache.camel.model.PackageScanDefinition)
-
getPackageScan
public org.apache.camel.model.PackageScanDefinition getPackageScan()
- Specified by:
getPackageScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setPackageScan
public void setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
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<SpringCamelContext>- Parameters:
packageScan- the package scan
-
getContextScan
public org.apache.camel.model.ContextScanDefinition getContextScan()
- Specified by:
getContextScanin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setContextScan
public void setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
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<SpringCamelContext>- Parameters:
contextScan- the context scan
-
getCamelPropertyPlaceholder
public org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
- Specified by:
getCamelPropertyPlaceholderin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<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<SpringCamelContext>
-
setCamelStreamCachingStrategy
public void setCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy)
Configuration of stream caching.
-
getCamelRouteController
public org.apache.camel.core.xml.CamelRouteControllerDefinition getCamelRouteController()
- Specified by:
getCamelRouteControllerin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setCamelRouteController
public void setCamelRouteController(org.apache.camel.core.xml.CamelRouteControllerDefinition camelRouteController)
Configuration of route controller.
-
setCamelJMXAgent
public void setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition agent)
Configuration of JMX Agent.
-
getTrace
public String getTrace()
- Specified by:
getTracein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setTrace
public void setTrace(String trace)
Sets whether tracing is enabled or not. To use tracing then this must be enabled on startup to be installed in the CamelContext.
-
getBacklogTrace
public String getBacklogTrace()
- Specified by:
getBacklogTracein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setBacklogTrace
public void setBacklogTrace(String backlogTrace)
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
public String getDebug()
- Specified by:
getDebugin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setDebug
public void setDebug(String debug)
Sets whether debugging is enabled or not. To use debugging then this must be enabled on startup to be installed in the CamelContext.
-
getTracePattern
public String getTracePattern()
- Specified by:
getTracePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setTracePattern
public void setTracePattern(String tracePattern)
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.
-
getMessageHistory
public String getMessageHistory()
- Specified by:
getMessageHistoryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setMessageHistory
public void setMessageHistory(String messageHistory)
Sets whether message history is enabled or not.
-
getLogMask
public String getLogMask()
- Specified by:
getLogMaskin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setLogMask
public void setLogMask(String logMask)
Sets whether security mask for Logging is enabled or not.
-
getLogExhaustedMessageBody
public String getLogExhaustedMessageBody()
- Specified by:
getLogExhaustedMessageBodyin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setLogExhaustedMessageBody
public void setLogExhaustedMessageBody(String logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
-
getStreamCache
public String getStreamCache()
- Specified by:
getStreamCachein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setStreamCache
public void setStreamCache(String streamCache)
Sets whether stream caching is enabled or not.
-
getDelayer
public String getDelayer()
- Specified by:
getDelayerin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setDelayer
public void setDelayer(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 occurring
-
getAutoStartup
public String getAutoStartup()
- Specified by:
getAutoStartupin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setAutoStartup
public void setAutoStartup(String autoStartup)
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
public String getShutdownEager()
-
setShutdownEager
public void setShutdownEager(String shutdownEager)
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.
-
getUseMDCLogging
public String getUseMDCLogging()
- Specified by:
getUseMDCLoggingin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setUseMDCLogging
public void setUseMDCLogging(String useMDCLogging)
Set whether MDC is enabled.
-
getMDCLoggingKeysPattern
public String getMDCLoggingKeysPattern()
- Specified by:
getMDCLoggingKeysPatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setMDCLoggingKeysPattern
public void setMDCLoggingKeysPattern(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. 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
public String getUseDataType()
- Specified by:
getUseDataTypein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setUseDataType
public void setUseDataType(String useDataType)
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
public String getUseBreadcrumb()
- Specified by:
getUseBreadcrumbin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setUseBreadcrumb
public void setUseBreadcrumb(String useBreadcrumb)
Set whether breadcrumb is enabled.
-
getAllowUseOriginalMessage
public String getAllowUseOriginalMessage()
- Specified by:
getAllowUseOriginalMessagein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setAllowUseOriginalMessage
public void setAllowUseOriginalMessage(String allowUseOriginalMessage)
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
public String getCaseInsensitiveHeaders()
- Specified by:
getCaseInsensitiveHeadersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setCaseInsensitiveHeaders
public void setCaseInsensitiveHeaders(String caseInsensitiveHeaders)
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.
-
getRuntimeEndpointRegistryEnabled
public String getRuntimeEndpointRegistryEnabled()
- Specified by:
getRuntimeEndpointRegistryEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRuntimeEndpointRegistryEnabled
public void setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled)
Sets whetherRuntimeEndpointRegistryis enabled.
-
getInflightRepositoryBrowseEnabled
public String getInflightRepositoryBrowseEnabled()
- Specified by:
getInflightRepositoryBrowseEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setInflightRepositoryBrowseEnabled
public void setInflightRepositoryBrowseEnabled(String inflightRepositoryBrowseEnabled)
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
public String getManagementNamePattern()
- Specified by:
getManagementNamePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setManagementNamePattern
public void setManagementNamePattern(String managementNamePattern)
The naming pattern for creating the CamelContext management name.
-
getThreadNamePattern
public String getThreadNamePattern()
- Specified by:
getThreadNamePatternin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setThreadNamePattern
public void setThreadNamePattern(String threadNamePattern)
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
public String getLoadTypeConverters()
- Specified by:
getLoadTypeConvertersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setLoadTypeConverters
public void setLoadTypeConverters(String loadTypeConverters)
Sets whether to load custom type converters by scanning classpath. This can be turned off if you are only using Camel components that does not provide type converters which is needed at runtime. In such situations setting this option to false, can speedup starting Camel.- Parameters:
loadTypeConverters- whether to load custom type converters.
-
getTypeConverterStatisticsEnabled
public String getTypeConverterStatisticsEnabled()
- Specified by:
getTypeConverterStatisticsEnabledin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setTypeConverterStatisticsEnabled
public void setTypeConverterStatisticsEnabled(String typeConverterStatisticsEnabled)
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. You can enable/disable the statistics at runtime using the {@link org.apache.camel.spi.TypeConverterRegistry#getStatistics()#setTypeConverterStatisticsEnabled(Boolean)} method, or from JMX on theManagedTypeConverterRegistryMBeanmbean.
-
getTypeConverterExists
public org.apache.camel.TypeConverterExists getTypeConverterExists()
- Specified by:
getTypeConverterExistsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setTypeConverterExists
public void setTypeConverterExists(org.apache.camel.TypeConverterExists typeConverterExists)
What should happen when attempting to add a duplicate type converter. The default behavior is to override the existing.
-
getTypeConverterExistsLoggingLevel
public org.apache.camel.LoggingLevel getTypeConverterExistsLoggingLevel()
- Specified by:
getTypeConverterExistsLoggingLevelin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<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 WARN
-
getCamelJMXAgent
public org.apache.camel.core.xml.CamelJMXAgentDefinition getCamelJMXAgent()
- Specified by:
getCamelJMXAgentin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getBuilderRefs
public List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
- Specified by:
getBuilderRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setBuilderRefs
public void setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
Refers to JavaRouteBuilderinstances to include as routes in this CamelContext.
-
getRouteRefs
public List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
- Specified by:
getRouteRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRouteRefs
public void setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)
Refers to XML routes to include as routes in this CamelContext.
-
getRestRefs
public List<org.apache.camel.model.RestContextRefDefinition> getRestRefs()
- Specified by:
getRestRefsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRestRefs
public void setRestRefs(List<org.apache.camel.model.RestContextRefDefinition> restRefs)
Refers to XML rest-dsl to include as REST services in this CamelContext.
-
getErrorHandlerRef
public String getErrorHandlerRef()
- Specified by:
getErrorHandlerRefin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setErrorHandlerRef
public void setErrorHandlerRef(String errorHandlerRef)
Sets the name of the error handler object used to default the error handling strategy
-
setDataFormats
public void setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats)
Configuration of data formats.
-
getDataFormats
public org.apache.camel.model.dataformat.DataFormatsDefinition getDataFormats()
- Specified by:
getDataFormatsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setTransformers
public void setTransformers(org.apache.camel.model.transformer.TransformersDefinition transformers)
Configuration of transformers.
-
getTransformers
public org.apache.camel.model.transformer.TransformersDefinition getTransformers()
- Specified by:
getTransformersin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setValidators
public void setValidators(org.apache.camel.model.validator.ValidatorsDefinition validators)
Configuration of validators.
-
getValidators
public org.apache.camel.model.validator.ValidatorsDefinition getValidators()
- Specified by:
getValidatorsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setRedeliveryPolicies
public void setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)
Configuration of redelivery settings.
-
getBeansFactory
public List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> getBeansFactory()
- Specified by:
getBeansFactoryin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setBeansFactory
public void setBeansFactory(List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> beansFactory)
Miscellaneous configurations
-
getBeans
public List<?> getBeans()
- Specified by:
getBeansin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getDefaultServiceCallConfiguration
public org.apache.camel.model.cloud.ServiceCallConfigurationDefinition getDefaultServiceCallConfiguration()
- Specified by:
getDefaultServiceCallConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<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<SpringCamelContext>
-
setServiceCallConfigurations
public void setServiceCallConfigurations(List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> serviceCallConfigurations)
ServiceCall EIP configurations
-
getHystrixConfigurations
public List<org.apache.camel.model.HystrixConfigurationDefinition> getHystrixConfigurations()
- Specified by:
getHystrixConfigurationsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getDefaultHystrixConfiguration
public org.apache.camel.model.HystrixConfigurationDefinition getDefaultHystrixConfiguration()
- Specified by:
getDefaultHystrixConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setDefaultHystrixConfiguration
public void setDefaultHystrixConfiguration(org.apache.camel.model.HystrixConfigurationDefinition defaultHystrixConfiguration)
Hystrix EIP default configuration
-
setHystrixConfigurations
public void setHystrixConfigurations(List<org.apache.camel.model.HystrixConfigurationDefinition> hystrixConfigurations)
Hystrix Circuit Breaker EIP configurations
-
getDefaultResilience4jConfiguration
public org.apache.camel.model.Resilience4jConfigurationDefinition getDefaultResilience4jConfiguration()
- Specified by:
getDefaultResilience4jConfigurationin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<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<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<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<SpringCamelContext>
-
setFaultToleranceConfigurations
public void setFaultToleranceConfigurations(List<org.apache.camel.model.FaultToleranceConfigurationDefinition> faultToleranceConfigurations)
MicroProfile Circuit Breaker EIP configurations
-
setOnExceptions
public void setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions)
Configuration of error handlers that triggers on exceptions thrown.
-
getOnExceptions
public List<org.apache.camel.model.OnExceptionDefinition> getOnExceptions()
- Specified by:
getOnExceptionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
getOnCompletions
public List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
- Specified by:
getOnCompletionsin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setOnCompletions
public void setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions)
Configuration of sub routes to run at the completion of routing.
-
getShutdownRoute
public org.apache.camel.ShutdownRoute getShutdownRoute()
- Specified by:
getShutdownRoutein classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setShutdownRoute
public void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
Sets the ShutdownRoute option for routes.
-
getShutdownRunningTask
public org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
- Specified by:
getShutdownRunningTaskin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setShutdownRunningTask
public void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
Sets the ShutdownRunningTask option to use when shutting down a route.
-
getThreadPoolProfiles
public List<org.apache.camel.model.ThreadPoolProfileDefinition> getThreadPoolProfiles()
- Specified by:
getThreadPoolProfilesin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setThreadPoolProfiles
public void setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)
Configuration of thread pool profiles.
-
getThreadPools
public List<CamelThreadPoolFactoryBean> getThreadPools()
-
setThreadPools
public void setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)
Configuration of thread pool
-
getDependsOn
public String getDependsOn()
- Specified by:
getDependsOnin classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<SpringCamelContext>
-
setDependsOn
public void setDependsOn(String dependsOn)
List of other bean id's this CamelContext depends up. Multiple bean id's can be separated by comma.
-
isImplicitId
public boolean isImplicitId()
-
setImplicitId
public void setImplicitId(boolean flag)
-
-