Class CamelContextFactoryBean

  • All Implemented Interfaces:
    EventListener, RestContainer, RouteConfigurationContainer, RouteContainer, RouteTemplateContainer, TemplatedRouteContainer, org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.core.Ordered

    @Metadata(label="spring,configuration")
    public class CamelContextFactoryBean
    extends org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
    implements org.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
    CamelContext using XML configuration.
    • Method Detail

      • getObjectType

        public Class<org.apache.camel.spring.SpringCamelContext> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.camel.spring.SpringCamelContext>
        Specified by:
        getObjectType in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getBeanForType

        protected <S> S getBeanForType​(Class<S> clazz)
        Specified by:
        getBeanForType in class org.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 class org.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 class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • postProcessBeforeInit

        protected void postProcessBeforeInit​(RouteBuilder builder)
        Specified by:
        postProcessBeforeInit in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • initPropertyPlaceholder

        protected void initPropertyPlaceholder()
                                        throws Exception
        Overrides:
        initPropertyPlaceholder in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
        Throws:
        Exception
      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle
      • getPhase

        public int getPhase()
        Specified by:
        getPhase in interface org.springframework.context.Phased
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setBeanPostProcessor

        public void setBeanPostProcessor​(org.springframework.beans.factory.config.BeanPostProcessor postProcessor)
      • getBeanPostProcessor

        public org.springframework.beans.factory.config.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • setContext

        public void setContext​(org.apache.camel.spring.SpringCamelContext context)
      • getRests

        public List<RestDefinitiongetRests()
        Specified by:
        getRests in interface RestContainer
        Specified by:
        getRests in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getEndpoints

        public List<CamelEndpointFactoryBeangetEndpoints()
        Specified by:
        getEndpoints in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getIntercepts

        public List<InterceptDefinitiongetIntercepts()
        Specified by:
        getIntercepts in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getInterceptFroms

        public List<InterceptFromDefinitiongetInterceptFroms()
        Specified by:
        getInterceptFroms in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getGlobalOptions

        public GlobalOptionsDefinition getGlobalOptions()
        Specified by:
        getGlobalOptions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getPackages

        public String[] getPackages()
        Specified by:
        getPackages in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getPackageScan

        public PackageScanDefinition getPackageScan()
        Specified by:
        getPackageScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • setPackageScan

        public void setPackageScan​(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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
        Parameters:
        packageScan - the package scan
      • getContextScan

        public ContextScanDefinition getContextScan()
        Specified by:
        getContextScan in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • setContextScan

        public void setContextScan​(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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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, as CamelContexts are always started.
        Note: When setting auto startup false on CamelContext then that takes precedence and no routes is started. You would need to start CamelContext explicit using the CamelContextLifecycle.start() method, to start the context, and then you would need to start the routes manually using RouteController.startRoute(String).

      • 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 class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getMDCLoggingKeysPattern

        public String getMDCLoggingKeysPattern()
        Specified by:
        getMDCLoggingKeysPattern in class org.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 class org.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
        Otherwise data type is default off.
      • getUseBreadcrumb

        public String getUseBreadcrumb()
        Specified by:
        getUseBreadcrumb in class org.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 class org.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 as EndpointInject, 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 class org.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 from UnitOfWork.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 class org.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 class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getInflightRepositoryBrowseEnabled

        public String getInflightRepositoryBrowseEnabled()
        Specified by:
        getInflightRepositoryBrowseEnabled in class org.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 class org.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 class org.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 the CamelContext
        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 class org.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 class org.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 class org.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.

      • getTypeConverterExists

        public org.apache.camel.TypeConverterExists getTypeConverterExists()
        Specified by:
        getTypeConverterExists in class org.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 class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getBuilderRefs

        public List<RouteBuilderDefinitiongetBuilderRefs()
        Specified by:
        getBuilderRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getRouteRefs

        public List<RouteContextRefDefinitiongetRouteRefs()
        Specified by:
        getRouteRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getRestRefs

        public List<RestContextRefDefinitiongetRestRefs()
        Specified by:
        getRestRefs in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getErrorHandlerRef

        public String getErrorHandlerRef()
        Specified by:
        getErrorHandlerRef in class org.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
      • getDataFormats

        public DataFormatsDefinition getDataFormats()
        Specified by:
        getDataFormats in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getTransformers

        public TransformersDefinition getTransformers()
        Specified by:
        getTransformers in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getValidators

        public ValidatorsDefinition getValidators()
        Specified by:
        getValidators in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getBeansFactory

        public List<org.apache.camel.core.xml.AbstractCamelFactoryBean<?>> getBeansFactory()
        Specified by:
        getBeansFactory in class org.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 class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • setBeans

        public void setBeans​(List<?> beans)
        Miscellaneous configurations
      • getOnExceptions

        public List<OnExceptionDefinitiongetOnExceptions()
        Specified by:
        getOnExceptions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getOnCompletions

        public List<OnCompletionDefinitiongetOnCompletions()
        Specified by:
        getOnCompletions in class org.apache.camel.core.xml.AbstractCamelContextFactoryBean<org.apache.camel.spring.SpringCamelContext>
      • getShutdownRoute

        public org.apache.camel.ShutdownRoute getShutdownRoute()
        Specified by:
        getShutdownRoute in class org.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 class org.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.
      • getDependsOn

        public String getDependsOn()
        Specified by:
        getDependsOn in class org.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.