|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.BuilderSupport org.apache.camel.builder.RouteBuilder org.apache.camel.spring.SpringRouteBuilder
public abstract class SpringRouteBuilder
An extension of the RouteBuilder
to provide some additional helper
methods
Constructor Summary | |
---|---|
SpringRouteBuilder()
|
Method Summary | ||
---|---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Returns the application context which has been configured via the setApplicationContext(ApplicationContext) method or from the
underlying SpringCamelContext |
|
|
lookup(Class<T> type)
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 |
|
|
lookup(String beanName,
Class<T> type)
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)
Sets the application context to use to lookup beans |
|
TransactionErrorHandlerBuilder |
transactionErrorHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
Creates a transaction error handler. |
|
TransactionErrorHandlerBuilder |
transactionErrorHandler(SpringTransactionPolicy policy)
Creates a transaction error handler. |
|
TransactionErrorHandlerBuilder |
transactionErrorHandler(org.springframework.transaction.support.TransactionTemplate template)
Creates a transaction error handler. |
|
TransactionErrorHandler |
transactionInterceptor()
|
Methods inherited from class org.apache.camel.builder.RouteBuilder |
---|
addRoutes, checkInitialized, configure, configureRoute, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRouteCollection, getRouteList, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRoutes, setErrorHandlerBuilder, setRouteCollection, toString |
Methods inherited from class org.apache.camel.builder.BuilderSupport |
---|
bean, bean, bean, bean, body, body, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, faultBody, faultBodyAs, getErrorHandlerBuilder, header, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, systemProperty, systemProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Routes |
---|
setContext |
Constructor Detail |
---|
public SpringRouteBuilder()
Method Detail |
---|
public TransactionErrorHandler transactionInterceptor()
public <T> T lookup(String beanName, Class<T> type)
beanName
- the name of the bean in the application contexttype
- the type of the bean
public <T> T lookup(Class<T> type)
type
- the type of the bean
public org.springframework.context.ApplicationContext getApplicationContext()
setApplicationContext(ApplicationContext)
method or from the
underlying SpringCamelContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public TransactionErrorHandlerBuilder transactionErrorHandler(SpringTransactionPolicy policy)
policy
- using this transaction policy (eg: required, supports, ...)
public TransactionErrorHandlerBuilder transactionErrorHandler(org.springframework.transaction.support.TransactionTemplate template)
template
- the spring transaction template
public TransactionErrorHandlerBuilder transactionErrorHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager
- the spring transaction manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |