Class SpringRouteBuilder

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.Ordered, org.apache.camel.RoutesBuilder, org.apache.camel.spi.ResourceAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Deprecated
    public abstract class SpringRouteBuilder
    extends org.apache.camel.builder.RouteBuilder
    implements org.springframework.context.ApplicationContextAware
    Deprecated.
    use plain RouteBuilder
    An extension of the RouteBuilder to provide some additional helper methods
    • Field Summary

      • Fields inherited from class org.apache.camel.builder.RouteBuilder

        log
      • Fields inherited from interface org.apache.camel.Ordered

        HIGHEST, LOWEST
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringRouteBuilder()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.springframework.context.ApplicationContext getApplicationContext()
      Deprecated.
      Returns the application context which has been configured via the setApplicationContext(ApplicationContext) method or from the underlying SpringCamelContext
      <T> T lookup​(Class<T> type)
      Deprecated.
      Looks up the bean with the given type in the application context and returns it, or throws an exception if the bean is not present or there are multiple possible beans to choose from for the given type
      <T> T lookup​(String beanName, Class<T> type)
      Deprecated.
      Looks up the bean with the given name in the application context and returns it, or throws an exception if the bean is not present or is not of the given type
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
      Deprecated.
      Sets the application context to use to lookup beans
      LegacyTransactionErrorHandlerBuilder transactionErrorHandler()
      Deprecated.
      Creates a transaction error handler that will lookup in application context for an exiting transaction manager.
      LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(SpringTransactionPolicy policy)
      Deprecated.
      Creates a transaction error handler.
      LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(org.springframework.transaction.PlatformTransactionManager transactionManager)
      Deprecated.
      Creates a transaction error handler.
      LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(org.springframework.transaction.support.TransactionTemplate template)
      Deprecated.
      Creates a transaction error handler.
      • Methods inherited from class org.apache.camel.builder.RouteBuilder

        addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configuration, configure, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, errorHandler, errorHandler, from, from, from, fromF, getOrder, getResource, getRestCollection, getRestConfiguration, getRouteCollection, getRouteTemplateCollection, getTemplatedRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, setRouteCollection, setRouteTemplateCollection, setTemplatedRouteCollection, templatedRoute, toString, transformer, updateRoutesToCamelContext, validator
      • Methods inherited from class org.apache.camel.builder.BuilderSupport

        body, bodyAs, constant, constant, constant, createErrorHandlerBuilder, csimple, csimple, datasonnet, datasonnet, datasonnet, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, joor, joor, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, xpath, xpath, xpath, xpath
    • Constructor Detail

      • SpringRouteBuilder

        public SpringRouteBuilder()
        Deprecated.
    • Method Detail

      • lookup

        public <T> T lookup​(String beanName,
                            Class<T> type)
        Deprecated.
        Looks up the bean with the given name in the application context and returns it, or throws an exception if the bean is not present or is not of the given type
        Parameters:
        beanName - the name of the bean in the application context
        type - the type of the bean
        Returns:
        the bean
      • lookup

        public <T> T lookup​(Class<T> type)
        Deprecated.
        Looks up the bean with the given type in the application context and returns it, or throws an exception if the bean is not present or there are multiple possible beans to choose from for the given type
        Parameters:
        type - the type of the bean
        Returns:
        the bean
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Deprecated.
        Sets the application context to use to lookup beans
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • transactionErrorHandler

        public LegacyTransactionErrorHandlerBuilder transactionErrorHandler()
        Deprecated.
        Creates a transaction error handler that will lookup in application context for an exiting transaction manager.
        Returns:
        the created error handler
      • transactionErrorHandler

        public LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(SpringTransactionPolicy policy)
        Deprecated.
        Creates a transaction error handler.
        Parameters:
        policy - using this transaction policy (eg: required, supports, ...)
        Returns:
        the created error handler
      • transactionErrorHandler

        public LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(org.springframework.transaction.support.TransactionTemplate template)
        Deprecated.
        Creates a transaction error handler.
        Parameters:
        template - the spring transaction template
        Returns:
        the created error handler
      • transactionErrorHandler

        public LegacyTransactionErrorHandlerBuilder transactionErrorHandler​(org.springframework.transaction.PlatformTransactionManager transactionManager)
        Deprecated.
        Creates a transaction error handler.
        Parameters:
        transactionManager - the spring transaction manager
        Returns:
        the created error handler