Class SpringRouteBuilder

java.lang.Object
org.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
org.apache.camel.spring.SpringRouteBuilder
All Implemented Interfaces:
org.apache.camel.builder.ModelRoutesBuilder, org.apache.camel.CamelContextAware, org.apache.camel.Ordered, org.apache.camel.RoutesBuilder, org.apache.camel.spi.HasCamelContext, 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
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.context.ApplicationContext
    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
    Deprecated.
    Creates a transaction error handler that will lookup in application context for an exiting transaction manager.
    Deprecated.
    Creates a transaction error handler.
    transactionErrorHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
    Deprecated.
    Creates a transaction error handler.
    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, addTemplatedRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configuration, configure, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, dataFormat, errorHandler, errorHandler, expression, from, from, from, fromF, fromV, fromV, getBeans, getOrder, getResource, getRestCollection, getRestConfiguration, getRests, getRouteCollection, getRoutes, getRouteTemplateCollection, getTemplatedRouteCollection, initializeCamelContext, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateBeans, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, prepareModel, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, 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, exceptionMessage, exchangeProperty, expression, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, java, java, joor, joor, jq, jq, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, variable, xpath, xpath, xpath, xpath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpringRouteBuilder

      public SpringRouteBuilder()
      Deprecated.
  • Method Details

    • 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
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
      Deprecated.
      Returns the application context which has been configured via the setApplicationContext(ApplicationContext) method or from the underlying SpringCamelContext
    • 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