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
,Aware
,DisposableBean
,FactoryBean<org.apache.camel.spring.SpringCamelContext>
,InitializingBean
,ApplicationContextAware
,ApplicationListener<ContextRefreshedEvent>
,Lifecycle
,Phased
,Ordered
@Metadata(label="spring,configuration") public class CamelContextFactoryBean extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext> implements FactoryBean<org.apache.camel.spring.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 void
afterPropertiesSet()
protected void
configure(org.apache.camel.spring.SpringCamelContext ctx)
Apply additional configuration to the contextprotected org.apache.camel.spring.SpringCamelContext
createContext()
Create the contextprotected void
findRouteBuildersByContextScan(org.apache.camel.spi.PackageScanFilter filter, boolean includeNonSingletons, List<org.apache.camel.RoutesBuilder> builders)
protected void
findRouteBuildersByPackageScan(String[] packages, org.apache.camel.spi.PackageScanFilter filter, List<org.apache.camel.RoutesBuilder> builders)
String
getAllowUseOriginalMessage()
ApplicationContext
getApplicationContext()
String
getAutoStartup()
String
getAutowiredEnabled()
String
getBacklogTrace()
protected <S> S
getBeanForType(Class<S> clazz)
BeanPostProcessor
getBeanPostProcessor()
String
getBeanPostProcessorEnabled()
List<?>
getBeans()
List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>>
getBeansFactory()
List<org.apache.camel.model.RouteBuilderDefinition>
getBuilderRefs()
org.apache.camel.core.xml.CamelJMXAgentDefinition
getCamelJMXAgent()
org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition
getCamelPropertyPlaceholder()
org.apache.camel.core.xml.CamelRouteControllerDefinition
getCamelRouteController()
org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition
getCamelStreamCachingStrategy()
String
getCaseInsensitiveHeaders()
org.apache.camel.spring.SpringCamelContext
getContext(boolean create)
org.apache.camel.model.ContextScanDefinition
getContextScan()
org.apache.camel.model.dataformat.DataFormatsDefinition
getDataFormats()
String
getDebug()
org.apache.camel.model.FaultToleranceConfigurationDefinition
getDefaultFaultToleranceConfiguration()
org.apache.camel.model.Resilience4jConfigurationDefinition
getDefaultResilience4jConfiguration()
org.apache.camel.model.cloud.ServiceCallConfigurationDefinition
getDefaultServiceCallConfiguration()
String
getDelayer()
String
getDependsOn()
String
getDumpRoutes()
List<CamelEndpointFactoryBean>
getEndpoints()
String
getErrorHandlerRef()
List<org.apache.camel.model.FaultToleranceConfigurationDefinition>
getFaultToleranceConfigurations()
org.apache.camel.model.GlobalOptionsDefinition
getGlobalOptions()
String
getInflightRepositoryBrowseEnabled()
List<org.apache.camel.model.InterceptFromDefinition>
getInterceptFroms()
List<org.apache.camel.model.InterceptDefinition>
getIntercepts()
List<org.apache.camel.model.InterceptSendToEndpointDefinition>
getInterceptSendToEndpoints()
String
getLoadHealthChecks()
String
getLoadTypeConverters()
String
getLogExhaustedMessageBody()
String
getLogMask()
String
getManagementNamePattern()
String
getMDCLoggingKeysPattern()
String
getMessageHistory()
Class<org.apache.camel.spring.SpringCamelContext>
getObjectType()
List<org.apache.camel.model.OnCompletionDefinition>
getOnCompletions()
List<org.apache.camel.model.OnExceptionDefinition>
getOnExceptions()
int
getOrder()
String[]
getPackages()
org.apache.camel.model.PackageScanDefinition
getPackageScan()
int
getPhase()
List<CamelRedeliveryPolicyFactoryBean>
getRedeliveryPolicies()
List<org.apache.camel.model.Resilience4jConfigurationDefinition>
getResilience4jConfigurations()
org.apache.camel.model.rest.RestConfigurationDefinition
getRestConfiguration()
List<org.apache.camel.model.RestContextRefDefinition>
getRestRefs()
List<org.apache.camel.model.rest.RestDefinition>
getRests()
List<org.apache.camel.model.RouteConfigurationContextRefDefinition>
getRouteConfigurationRefs()
List<org.apache.camel.model.RouteConfigurationDefinition>
getRouteConfigurations()
List<org.apache.camel.model.RouteContextRefDefinition>
getRouteRefs()
List<org.apache.camel.model.RouteDefinition>
getRoutes()
List<org.apache.camel.model.RouteTemplateContextRefDefinition>
getRouteTemplateRefs()
List<org.apache.camel.model.RouteTemplateDefinition>
getRouteTemplates()
String
getRuntimeEndpointRegistryEnabled()
List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition>
getServiceCallConfigurations()
String
getShutdownEager()
org.apache.camel.ShutdownRoute
getShutdownRoute()
org.apache.camel.ShutdownRunningTask
getShutdownRunningTask()
String
getSourceLocationEnabled()
org.apache.camel.StartupSummaryLevel
getStartupSummaryLevel()
String
getStreamCache()
List<org.apache.camel.model.TemplatedRouteDefinition>
getTemplatedRoutes()
String
getThreadNamePattern()
List<org.apache.camel.model.ThreadPoolProfileDefinition>
getThreadPoolProfiles()
List<CamelThreadPoolFactoryBean>
getThreadPools()
String
getTrace()
String
getTraceLoggingFormat()
String
getTracePattern()
org.apache.camel.model.transformer.TransformersDefinition
getTransformers()
org.apache.camel.TypeConverterExists
getTypeConverterExists()
org.apache.camel.LoggingLevel
getTypeConverterExistsLoggingLevel()
String
getTypeConverterStatisticsEnabled()
String
getUseBreadcrumb()
String
getUseDataType()
String
getUseMDCLogging()
org.apache.camel.model.validator.ValidatorsDefinition
getValidators()
protected void
initBeanPostProcessor(org.apache.camel.spring.SpringCamelContext context)
protected void
initCustomRegistry(org.apache.camel.spring.SpringCamelContext context)
protected void
initPropertyPlaceholder()
boolean
isImplicitId()
boolean
isRunning()
protected org.apache.camel.spring.SpringCamelContext
newCamelContext()
void
onApplicationEvent(ContextRefreshedEvent event)
protected void
postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
void
setAllowUseOriginalMessage(String allowUseOriginalMessage)
Sets whether to allow access to the original message from Camel's error handler, or fromUnitOfWork.getOriginalInMessage()
.void
setApplicationContext(ApplicationContext applicationContext)
void
setAutoStartup(String autoStartup)
Sets whether the object should automatically start when Camel starts.void
setAutowiredEnabled(String autowiredEnabled)
Whether autowiring is enabled.void
setBacklogTrace(String backlogTrace)
Sets whether backlog tracing is enabled or not.void
setBeanPostProcessor(BeanPostProcessor postProcessor)
void
setBeanPostProcessorEnabled(String beanPostProcessorEnabled)
Can be used to turn off bean post processing.void
setBeans(List<?> beans)
Miscellaneous configurationsvoid
setBeansFactory(List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> beansFactory)
Miscellaneous configurationsvoid
setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
Refers to JavaRouteBuilder
instances to include as routes in this CamelContext.void
setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition agent)
Configuration of JMX Agent.void
setCamelPropertyPlaceholder(org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition camelPropertyPlaceholder)
Configuration of property placeholdervoid
setCamelRouteController(org.apache.camel.core.xml.CamelRouteControllerDefinition camelRouteController)
Configuration of route controller.void
setCamelStreamCachingStrategy(org.apache.camel.core.xml.CamelStreamCachingStrategyDefinition camelStreamCachingStrategy)
Configuration of stream caching.void
setCaseInsensitiveHeaders(String caseInsensitiveHeaders)
Whether to use case sensitive or insensitive headers.void
setContext(org.apache.camel.spring.SpringCamelContext context)
void
setContextScan(org.apache.camel.model.ContextScanDefinition contextScan)
Sets the context scanning (eg Spring's ApplicationContext) information.void
setDataFormats(org.apache.camel.model.dataformat.DataFormatsDefinition dataFormats)
Configuration of data formats.void
setDebug(String debug)
Sets whether debugging is enabled or not.void
setDefaultFaultToleranceConfiguration(org.apache.camel.model.FaultToleranceConfigurationDefinition defaultFaultToleranceConfiguration)
MicroProfile Fault Tolerance EIP default configurationvoid
setDefaultResilience4jConfiguration(org.apache.camel.model.Resilience4jConfigurationDefinition defaultResilience4jConfiguration)
Resilience4j EIP default configurationvoid
setDefaultServiceCallConfiguration(org.apache.camel.model.cloud.ServiceCallConfigurationDefinition defaultServiceCallConfiguration)
ServiceCall EIP default configurationvoid
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 occurringvoid
setDependsOn(String dependsOn)
List of other bean id's this CamelContext depends up.void
setDumpRoutes(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.void
setEndpoints(List<CamelEndpointFactoryBean> endpoints)
Configuration of endpointsvoid
setErrorHandlerRef(String errorHandlerRef)
Sets the name of the error handler object used to default the error handling strategyvoid
setFaultToleranceConfigurations(List<org.apache.camel.model.FaultToleranceConfigurationDefinition> faultToleranceConfigurations)
MicroProfile Circuit Breaker EIP configurationsvoid
setGlobalOptions(org.apache.camel.model.GlobalOptionsDefinition globalOptions)
Configuration of CamelContext properties such as limit of debug logging and other general options.void
setImplicitId(boolean flag)
void
setInflightRepositoryBrowseEnabled(String inflightRepositoryBrowseEnabled)
Sets whether the inflight repository should allow browsing each inflight exchange.void
setInterceptFroms(List<org.apache.camel.model.InterceptFromDefinition> interceptFroms)
Configuration of interceptors that triggers from the beginning of routes.void
setIntercepts(List<org.apache.camel.model.InterceptDefinition> intercepts)
Configuration of interceptors.void
setInterceptSendToEndpoints(List<org.apache.camel.model.InterceptSendToEndpointDefinition> interceptSendToEndpoints)
Configuration of interceptors that triggers sending messages to endpoints.void
setLoadHealthChecks(String loadHealthChecks)
Whether to load custom health checks by scanning classpath.void
setLoadTypeConverters(String loadTypeConverters)
Whether to load custom type converters by scanning classpath.void
setLogExhaustedMessageBody(String logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.void
setLogMask(String logMask)
Sets whether security mask for Logging is enabled or not.void
setManagementNamePattern(String managementNamePattern)
The naming pattern for creating the CamelContext management name.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.void
setMessageHistory(String messageHistory)
Sets whether message history is enabled or not.void
setOnCompletions(List<org.apache.camel.model.OnCompletionDefinition> onCompletions)
Configuration of sub routes to run at the completion of routing.void
setOnExceptions(List<org.apache.camel.model.OnExceptionDefinition> onExceptions)
Configuration of error handlers that triggers on exceptions thrown.void
setPackages(String[] packages)
Sets the package names to be recursively searched for Java classes which extendRouteBuilder
to be auto-wired up to theCamelContext
as a route.void
setPackageScan(org.apache.camel.model.PackageScanDefinition packageScan)
Sets the package scanning information.void
setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)
Configuration of redelivery settings.void
setResilience4jConfigurations(List<org.apache.camel.model.Resilience4jConfigurationDefinition> resilience4jConfigurations)
Resilience4j Circuit Breaker EIP configurationsvoid
setRestConfiguration(org.apache.camel.model.rest.RestConfigurationDefinition restConfiguration)
Configuration for rest-dslvoid
setRestRefs(List<org.apache.camel.model.RestContextRefDefinition> restRefs)
Refers to XML rest-dsl to include as REST services in this CamelContext.void
setRests(List<org.apache.camel.model.rest.RestDefinition> rests)
Contains the rest services defined using the rest-dslvoid
setRouteConfigurationRefs(List<org.apache.camel.model.RouteConfigurationContextRefDefinition> routeConfigurationRefs)
Refers to XML route configurations to include as route configurations in this CamelContext.void
setRouteConfigurations(List<org.apache.camel.model.RouteConfigurationDefinition> routeConfigurations)
Contains the Camel route configurationsvoid
setRouteRefs(List<org.apache.camel.model.RouteContextRefDefinition> routeRefs)
Refers to XML routes to include as routes in this CamelContext.void
setRoutes(List<org.apache.camel.model.RouteDefinition> routes)
Contains the Camel routesvoid
setRouteTemplateRefs(List<org.apache.camel.model.RouteTemplateContextRefDefinition> routeTemplateRefs)
Refers to XML route templates to include as route templates in this CamelContext.void
setRouteTemplates(List<org.apache.camel.model.RouteTemplateDefinition> routeTemplates)
Contains the Camel route templatesvoid
setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled)
Sets whetherRuntimeEndpointRegistry
is enabled.void
setServiceCallConfigurations(List<org.apache.camel.model.cloud.ServiceCallConfigurationDefinition> serviceCallConfigurations)
ServiceCall EIP configurationsvoid
setShutdownEager(String shutdownEager)
Whether to shutdown CamelContext eager when Spring is shutting down.void
setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
Sets the ShutdownRoute option for routes.void
setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
Sets the ShutdownRunningTask option to use when shutting down a route.void
setSourceLocationEnabled(String sourceLocationEnabled)
Whether to capture precise source location:line-number for all EIPs in Camel routes.void
setStartupSummaryLevel(org.apache.camel.StartupSummaryLevel startupSummaryLevel)
Controls the level of information logged during startup (and shutdown) of CamelContext.void
setStreamCache(String streamCache)
Sets whether stream caching is enabled or not.void
setTemplatedRoutes(List<org.apache.camel.model.TemplatedRouteDefinition> templatedRoutes)
Contains the Camel templated routesvoid
setThreadNamePattern(String threadNamePattern)
Sets the thread name pattern used for creating the full thread name.void
setThreadPoolProfiles(List<org.apache.camel.model.ThreadPoolProfileDefinition> threadPoolProfiles)
Configuration of thread pool profiles.void
setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)
Configuration of thread poolvoid
setTrace(String trace)
Sets whether tracing is enabled or not.void
setTraceLoggingFormat(String traceLoggingFormat)
To use a custom tracing logging format.void
setTracePattern(String tracePattern)
Tracing pattern to match which node EIPs to trace.void
setTransformers(org.apache.camel.model.transformer.TransformersDefinition transformers)
Configuration of transformers.void
setTypeConverterExists(org.apache.camel.TypeConverterExists typeConverterExists)
What should happen when attempting to add a duplicate type converter.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.void
setTypeConverterStatisticsEnabled(String typeConverterStatisticsEnabled)
Sets whether or not type converter statistics is enabled.void
setUseBreadcrumb(String useBreadcrumb)
Set whether breadcrumb is enabled.void
setUseDataType(String useDataType)
Whether to enable using data type on Camel messages.void
setUseMDCLogging(String useMDCLogging)
Set whether MDC is enabled.void
setValidators(org.apache.camel.model.validator.ValidatorsDefinition validators)
Configuration of validators.void
start()
void
stop()
-
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, 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<org.apache.camel.spring.SpringCamelContext> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Specified by:
getObjectType
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getBeanForType
protected <S> S getBeanForType(Class<S> clazz)
- Specified by:
getBeanForType
in 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:
findRouteBuildersByPackageScan
in 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:
findRouteBuildersByContextScan
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Throws:
Exception
-
initBeanPostProcessor
protected void initBeanPostProcessor(org.apache.camel.spring.SpringCamelContext context)
- Specified by:
initBeanPostProcessor
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
postProcessBeforeInit
protected void postProcessBeforeInit(org.apache.camel.builder.RouteBuilder builder)
- Specified by:
postProcessBeforeInit
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Throws:
Exception
-
initCustomRegistry
protected void initCustomRegistry(org.apache.camel.spring.SpringCamelContext context)
- Specified by:
initCustomRegistry
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
initPropertyPlaceholder
protected void initPropertyPlaceholder() throws Exception
- Overrides:
initPropertyPlaceholder
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Throws:
Exception
-
onApplicationEvent
public void onApplicationEvent(ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interfaceApplicationListener<ContextRefreshedEvent>
-
getApplicationContext
public ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
setBeanPostProcessor
public void setBeanPostProcessor(BeanPostProcessor postProcessor)
-
getBeanPostProcessor
public BeanPostProcessor getBeanPostProcessor()
-
createContext
protected org.apache.camel.spring.SpringCamelContext createContext()
Create the context
-
configure
protected void configure(org.apache.camel.spring.SpringCamelContext ctx)
Apply additional configuration to the context
-
newCamelContext
protected org.apache.camel.spring.SpringCamelContext newCamelContext()
-
getContext
public org.apache.camel.spring.SpringCamelContext getContext(boolean create)
- Specified by:
getContext
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setContext
public void setContext(org.apache.camel.spring.SpringCamelContext context)
-
getRoutes
public List<org.apache.camel.model.RouteDefinition> getRoutes()
- Specified by:
getRoutes
in interfaceorg.apache.camel.model.RouteContainer
- Specified by:
getRoutes
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRoutes
public void setRoutes(List<org.apache.camel.model.RouteDefinition> routes)
Contains the Camel routes- Specified by:
setRoutes
in interfaceorg.apache.camel.model.RouteContainer
-
getRouteConfigurations
public List<org.apache.camel.model.RouteConfigurationDefinition> getRouteConfigurations()
- Specified by:
getRouteConfigurations
in interfaceorg.apache.camel.model.RouteConfigurationContainer
- Specified by:
getRouteConfigurations
in 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:
setRouteConfigurations
in interfaceorg.apache.camel.model.RouteConfigurationContainer
-
getRouteTemplates
public List<org.apache.camel.model.RouteTemplateDefinition> getRouteTemplates()
- Specified by:
getRouteTemplates
in interfaceorg.apache.camel.model.RouteTemplateContainer
- Specified by:
getRouteTemplates
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRouteTemplates
public void setRouteTemplates(List<org.apache.camel.model.RouteTemplateDefinition> routeTemplates)
Contains the Camel route templates- Specified by:
setRouteTemplates
in interfaceorg.apache.camel.model.RouteTemplateContainer
-
getTemplatedRoutes
public List<org.apache.camel.model.TemplatedRouteDefinition> getTemplatedRoutes()
- Specified by:
getTemplatedRoutes
in interfaceorg.apache.camel.model.TemplatedRouteContainer
- Specified by:
getTemplatedRoutes
in 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:
setTemplatedRoutes
in interfaceorg.apache.camel.model.TemplatedRouteContainer
-
getRests
public List<org.apache.camel.model.rest.RestDefinition> getRests()
- Specified by:
getRests
in interfaceorg.apache.camel.model.rest.RestContainer
- Specified by:
getRests
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRests
public void setRests(List<org.apache.camel.model.rest.RestDefinition> rests)
Contains the rest services defined using the rest-dsl- Specified by:
setRests
in interfaceorg.apache.camel.model.rest.RestContainer
-
getRestConfiguration
public org.apache.camel.model.rest.RestConfigurationDefinition getRestConfiguration()
- Specified by:
getRestConfiguration
in 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
public List<CamelEndpointFactoryBean> getEndpoints()
- Specified by:
getEndpoints
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setEndpoints
public void setEndpoints(List<CamelEndpointFactoryBean> endpoints)
Configuration of endpoints
-
getRedeliveryPolicies
public List<CamelRedeliveryPolicyFactoryBean> getRedeliveryPolicies()
- Specified by:
getRedeliveryPolicies
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getIntercepts
public List<org.apache.camel.model.InterceptDefinition> getIntercepts()
- Specified by:
getIntercepts
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getInterceptFroms
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getInterceptSendToEndpoints
in 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
public org.apache.camel.model.GlobalOptionsDefinition getGlobalOptions()
- Specified by:
getGlobalOptions
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getPackages
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setPackages
public void setPackages(String[] packages)
Sets the package names to be recursively searched for Java classes which extendRouteBuilder
to be auto-wired up to theCamelContext
as 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:
getPackageScan
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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.RouteBuilder
implementations- Specified by:
setPackageScan
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Parameters:
packageScan
- the package scan
-
getContextScan
public org.apache.camel.model.ContextScanDefinition getContextScan()
- Specified by:
getContextScan
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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.RouteBuilder
implementations- Specified by:
setContextScan
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
- Parameters:
contextScan
- the context scan
-
getCamelPropertyPlaceholder
public org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition getCamelPropertyPlaceholder()
- Specified by:
getCamelPropertyPlaceholder
in 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:
getCamelStreamCachingStrategy
in 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
public org.apache.camel.core.xml.CamelRouteControllerDefinition getCamelRouteController()
- Specified by:
getCamelRouteController
in 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
public void setCamelJMXAgent(org.apache.camel.core.xml.CamelJMXAgentDefinition agent)
Configuration of JMX Agent.
-
getTrace
public String getTrace()
- Specified by:
getTrace
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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.
-
getStartupSummaryLevel
public org.apache.camel.StartupSummaryLevel getStartupSummaryLevel()
- Specified by:
getStartupSummaryLevel
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setStartupSummaryLevel
public void setStartupSummaryLevel(org.apache.camel.StartupSummaryLevel startupSummaryLevel)
Controls the level of information logged during startup (and shutdown) of CamelContext.
-
getBacklogTrace
public String getBacklogTrace()
- Specified by:
getBacklogTrace
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getDebug
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getTracePattern
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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.
-
getTraceLoggingFormat
public String getTraceLoggingFormat()
- Specified by:
getTraceLoggingFormat
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setTraceLoggingFormat
public void setTraceLoggingFormat(String traceLoggingFormat)
To use a custom tracing logging format. The default format (arrow, routeId, label) is: %-4.4s [%-12.12s] [%-33.33s]
-
getMessageHistory
public String getMessageHistory()
- Specified by:
getMessageHistory
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setMessageHistory
public void setMessageHistory(String messageHistory)
Sets whether message history is enabled or not.
-
getSourceLocationEnabled
public String getSourceLocationEnabled()
- Specified by:
getSourceLocationEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setSourceLocationEnabled
public void setSourceLocationEnabled(String sourceLocationEnabled)
Whether to capture precise source location:line-number for all EIPs in Camel routes. Enabling this will impact parsing Java based routes (also Groovy, Kotlin, 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
public String getLogMask()
- Specified by:
getLogMask
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLogMask
public void setLogMask(String logMask)
Sets whether security mask for Logging is enabled or not.
-
getLogExhaustedMessageBody
public String getLogExhaustedMessageBody()
- Specified by:
getLogExhaustedMessageBody
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLogExhaustedMessageBody
public void setLogExhaustedMessageBody(String logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
-
getStreamCache
public String getStreamCache()
- Specified by:
getStreamCache
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setStreamCache
public void setStreamCache(String streamCache)
Sets whether stream caching is enabled or not.
-
getDelayer
public String getDelayer()
- Specified by:
getDelayer
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getAutoStartup
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setAutoStartup
public void setAutoStartup(String autoStartup)
Sets whether the object should automatically start when Camel starts. Important: Currently only routes can be disabled, asCamelContext
s are always started.
Note: When setting auto startup false onCamelContext
then that takes precedence and no routes is started. You would need to startCamelContext
explicit 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.
-
getDumpRoutes
public String getDumpRoutes()
- Specified by:
getDumpRoutes
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setDumpRoutes
public void setDumpRoutes(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. 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
public String getUseMDCLogging()
- Specified by:
getUseMDCLogging
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setUseMDCLogging
public void setUseMDCLogging(String useMDCLogging)
Set whether MDC is enabled.
-
getMDCLoggingKeysPattern
public String getMDCLoggingKeysPattern()
- Specified by:
getMDCLoggingKeysPattern
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getUseDataType
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getUseBreadcrumb
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setUseBreadcrumb
public void setUseBreadcrumb(String useBreadcrumb)
Set whether breadcrumb is enabled.
-
getBeanPostProcessorEnabled
public String getBeanPostProcessorEnabled()
- Specified by:
getBeanPostProcessorEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBeanPostProcessorEnabled
public void setBeanPostProcessorEnabled(String beanPostProcessorEnabled)
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
,Consume
etc 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 (such as camel-blueprint or camel-cdi with XML). The default value is true (enabled).
-
getAllowUseOriginalMessage
public String getAllowUseOriginalMessage()
- Specified by:
getAllowUseOriginalMessage
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getCaseInsensitiveHeaders
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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.
-
getAutowiredEnabled
public String getAutowiredEnabled()
- Specified by:
getAutowiredEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setAutowiredEnabled
public void setAutowiredEnabled(String autowiredEnabled)
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
public String getRuntimeEndpointRegistryEnabled()
- Specified by:
getRuntimeEndpointRegistryEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRuntimeEndpointRegistryEnabled
public void setRuntimeEndpointRegistryEnabled(String runtimeEndpointRegistryEnabled)
Sets whetherRuntimeEndpointRegistry
is enabled.
-
getInflightRepositoryBrowseEnabled
public String getInflightRepositoryBrowseEnabled()
- Specified by:
getInflightRepositoryBrowseEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getManagementNamePattern
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setManagementNamePattern
public void setManagementNamePattern(String managementNamePattern)
The naming pattern for creating the CamelContext management name.
-
getThreadNamePattern
public String getThreadNamePattern()
- Specified by:
getThreadNamePattern
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getLoadTypeConverters
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLoadTypeConverters
public void setLoadTypeConverters(String loadTypeConverters)
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
public String getLoadHealthChecks()
- Specified by:
getLoadHealthChecks
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setLoadHealthChecks
public void setLoadHealthChecks(String loadHealthChecks)
Whether to load custom health checks by scanning classpath.
-
getTypeConverterStatisticsEnabled
public String getTypeConverterStatisticsEnabled()
- Specified by:
getTypeConverterStatisticsEnabled
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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 theManagedTypeConverterRegistryMBean
mbean.
-
getTypeConverterExists
public org.apache.camel.TypeConverterExists getTypeConverterExists()
- Specified by:
getTypeConverterExists
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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 ignore the duplicate.
-
getTypeConverterExistsLoggingLevel
public org.apache.camel.LoggingLevel getTypeConverterExistsLoggingLevel()
- Specified by:
getTypeConverterExistsLoggingLevel
in 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
public org.apache.camel.core.xml.CamelJMXAgentDefinition getCamelJMXAgent()
- Specified by:
getCamelJMXAgent
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getRouteConfigurationRefs
public List<org.apache.camel.model.RouteConfigurationContextRefDefinition> getRouteConfigurationRefs()
- Specified by:
getRouteConfigurationRefs
in 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
public List<org.apache.camel.model.RouteTemplateContextRefDefinition> getRouteTemplateRefs()
- Specified by:
getRouteTemplateRefs
in 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
public List<org.apache.camel.model.RouteBuilderDefinition> getBuilderRefs()
- Specified by:
getBuilderRefs
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setBuilderRefs
public void setBuilderRefs(List<org.apache.camel.model.RouteBuilderDefinition> builderRefs)
Refers to JavaRouteBuilder
instances to include as routes in this CamelContext.
-
getRouteRefs
public List<org.apache.camel.model.RouteContextRefDefinition> getRouteRefs()
- Specified by:
getRouteRefs
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getRestRefs
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getErrorHandlerRef
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getDataFormats
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getTransformers
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getValidators
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
setRedeliveryPolicies
public void setRedeliveryPolicies(List<CamelRedeliveryPolicyFactoryBean> redeliveryPolicies)
Configuration of redelivery settings.
-
getBeansFactory
public List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> getBeansFactory()
- Specified by:
getBeansFactory
in 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
public List<?> getBeans()
- Specified by:
getBeans
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getDefaultServiceCallConfiguration
public org.apache.camel.model.cloud.ServiceCallConfigurationDefinition getDefaultServiceCallConfiguration()
- Specified by:
getDefaultServiceCallConfiguration
in 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:
getServiceCallConfigurations
in 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:
getDefaultResilience4jConfiguration
in 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:
getResilience4jConfigurations
in 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:
getDefaultFaultToleranceConfiguration
in 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:
getFaultToleranceConfigurations
in 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
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:
getOnExceptions
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
-
getOnCompletions
public List<org.apache.camel.model.OnCompletionDefinition> getOnCompletions()
- Specified by:
getOnCompletions
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getShutdownRoute
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getShutdownRunningTask
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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:
getThreadPoolProfiles
in 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
public List<CamelThreadPoolFactoryBean> getThreadPools()
-
setThreadPools
public void setThreadPools(List<CamelThreadPoolFactoryBean> threadPools)
Configuration of thread pool
-
getDependsOn
public String getDependsOn()
- Specified by:
getDependsOn
in classorg.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.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)
-
-