Package org.apache.camel.spring
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.
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContext
Deprecated.Returns the application context which has been configured via thesetApplicationContext(ApplicationContext)
method or from the underlyingSpringCamelContext
<T> T
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
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 typevoid
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Deprecated.Sets the application context to use to lookup beansDeprecated.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
-
Constructor Details
-
SpringRouteBuilder
public SpringRouteBuilder()Deprecated.
-
-
Method Details
-
lookup
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 contexttype
- the type of the bean- Returns:
- the bean
-
lookup
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 thesetApplicationContext(ApplicationContext)
method or from the underlyingSpringCamelContext
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.Sets the application context to use to lookup beans- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
transactionErrorHandler
Deprecated.Creates a transaction error handler that will lookup in application context for an exiting transaction manager.- Returns:
- the created error handler
-
transactionErrorHandler
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
-
RouteBuilder