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.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 plainRouteBuilderAn extension of theRouteBuilderto 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 org.springframework.context.ApplicationContextgetApplicationContext()Deprecated.Returns the application context which has been configured via thesetApplicationContext(ApplicationContext)method or from the underlyingSpringCamelContext<T> Tlookup(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> Tlookup(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 typevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)Deprecated.Sets the application context to use to lookup beansLegacyTransactionErrorHandlerBuildertransactionErrorHandler()Deprecated.Creates a transaction error handler that will lookup in application context for an exiting transaction manager.LegacyTransactionErrorHandlerBuildertransactionErrorHandler(SpringTransactionPolicy policy)Deprecated.Creates a transaction error handler.LegacyTransactionErrorHandlerBuildertransactionErrorHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)Deprecated.Creates a transaction error handler.LegacyTransactionErrorHandlerBuildertransactionErrorHandler(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, getOrder, getResource, getRestCollection, getRestConfiguration, getRouteCollection, getRouteTemplateCollection, getTemplatedRouteCollection, initializeCamelContext, 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, expression, 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
-
-
-
-
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 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:
setApplicationContextin interfaceorg.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
-
-