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.Ordered
,org.apache.camel.RoutesBuilder
,Aware
,ApplicationContextAware
@Deprecated public abstract class SpringRouteBuilder extends org.apache.camel.builder.RouteBuilder implements ApplicationContextAware
Deprecated.use plainRouteBuilder
An extension of theRouteBuilder
to provide some additional helper methods
-
-
Constructor Summary
Constructors Constructor Description SpringRouteBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApplicationContext
getApplicationContext()
Deprecated.Returns the application context which has been configured via thesetApplicationContext(ApplicationContext)
method or from the underlyingSpringCamelContext
<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 typevoid
setApplicationContext(ApplicationContext applicationContext)
Deprecated.Sets the application context to use to lookup beansTransactionErrorHandlerBuilder
transactionErrorHandler()
Deprecated.Creates a transaction error handler that will lookup in application context for an exiting transaction manager.TransactionErrorHandlerBuilder
transactionErrorHandler(SpringTransactionPolicy policy)
Deprecated.Creates a transaction error handler.TransactionErrorHandlerBuilder
transactionErrorHandler(PlatformTransactionManager transactionManager)
Deprecated.Creates a transaction error handler.TransactionErrorHandlerBuilder
transactionErrorHandler(TransactionTemplate template)
Deprecated.Creates a transaction error handler.-
Methods inherited from class org.apache.camel.builder.RouteBuilder
addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configure, configureRest, configureRests, configureRoute, configureRoutes, errorHandler, from, from, from, fromF, getOrder, getRestCollection, getRestConfiguration, getRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, populateTransformers, populateValidators, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection, toString, transformer, validator
-
Methods inherited from class org.apache.camel.builder.BuilderSupport
body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, getContext, getErrorHandlerBuilder, header, jsonpath, jsonpath, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setContext, simple, simple, simpleF, simpleF, 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 contexttype
- 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 ApplicationContext getApplicationContext()
Deprecated.Returns the application context which has been configured via thesetApplicationContext(ApplicationContext)
method or from the underlyingSpringCamelContext
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
Deprecated.Sets the application context to use to lookup beans- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
transactionErrorHandler
public TransactionErrorHandlerBuilder 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 TransactionErrorHandlerBuilder 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 TransactionErrorHandlerBuilder transactionErrorHandler(TransactionTemplate template)
Deprecated.Creates a transaction error handler.- Parameters:
template
- the spring transaction template- Returns:
- the created error handler
-
transactionErrorHandler
public TransactionErrorHandlerBuilder transactionErrorHandler(PlatformTransactionManager transactionManager)
Deprecated.Creates a transaction error handler.- Parameters:
transactionManager
- the spring transaction manager- Returns:
- the created error handler
-
-